Fitnesse Eclipse plugin - How to convert eclipse project to Fitnesse project - java

I am trying to use Fitnesse plugin available at:
http://fitnesse-eclipse.github.io/#intro
I have downloaded and installed the plugin in eclipse. I can see a new option 'FitNesse' on my tool bar and when I right-click on the project I can see the option of 'FitNesse->Open in Browser' as well. The thing which I am not able to get is that the user-guide mentions an option to convert the project to FitNesse Project. I do not get this option when I right-click on the project.
Is this something anyone else came across while using this plugin or am I the only one. Please help.

if you have the Open in Browser, it looks like you have already converted to a fitness project. what version of the plugin are you using?
it may be that you have installed the (https://code.google.com/p/fitnesse-editor/)

Related

Struggling to install/add JUnit plugin in Netbeans IDE 8.0.2

I am new to Netbeans and I am trying to install JUnit in the IDE. I have searched multiple places and can not find a clear answer. I am running Windows8 with the latest updates and Netbeans 8.0.2. I have downloaded the jar file for JUnit opened Tools => Plugins then Downloaded tab. I select the jar file but nothing happens. I have also tried to run the jar file from commandline and double clicked it and nothing happens. I am looking to expand my skills sets by practicing using JUnit so any help would be appreciated.
thank you.
It is installed by default.
To see that it is installed goto Tools -> Plugins -> Installed and search for JUnit. If it is not there, check Tools -> Plugins -> Available Plugins before trying your own download.
To use select any java file in the projects directory, right-click Tools -> Create/Update Tests. This will create a stub test file under Test Packages under your Project in the projects tab.
Select the project and right-click for Test to run all the tests or select any file and right-click for the Test File option.
I have not used Netbeans for many years now. However, a quick search shows that during the installation process, there is an option of installing JUnit along with Netbeans. The default option(checked) is Install JUnit.
If by any chance, the second option(Do not install JUnit) got checked, you may want to re-install Netbeans again.
For some reason I am still using the old 8.0.2 version of Netbeans, and I found out that the install script apparently installs the junit plugin, but not the junit libs. Downloading the following files and adding them as test libs helped:
junit-4.13.jar
hamcrest-core-1.3.jar
At the time of this writing, they could be found here: https://github.com/junit-team/junit4/wiki/Download-and-Install
I had the same issue and this is how I solved it,
First download the jar file for Junit from this link
Junit test jar
Then follow along as shown in the images
Right click on the Library section on your particular project
Click on the create button and name Junit(on your preference)->Ok
Then select the Library you created and then select Add Jar/folder
Then select the .jar file you downloaded before and select Add jar folder
Now you have setup the Junit library on netbeans

How to install Cordova plugins in Netbeans IDE? 8.0

I'm just getting into javascript development so please bear with me.
I'm trying to install the SpeechRecognizer plugin into Cordova/a Cordova project (which is built into Netbeans IDE 8.0 )
and I really don't know where I have to begin. Could somebody help me out with this? How do install the plugin, how do I call the function? How do I get a string or array returned to me conntaining what the speech recognition picked up?
Thanks so much, I'm a total noob.
The plugin is SpeechRecognizer - https://github.com/poiuytrez/SpeechRecognizer
You can do following:
open [projectFolder]/nbproject/plugins.properties file
paste following at the end of file
SpeechRecognizer=https://github.com/poiuytrez/SpeechRecognizer.git
build project
The plugins.properties file contains list of used plugins. Some "core" plugins can be added/removed easily in project properties but for 3rd party/unknown plugins, you need to manually modify the file (it is also mentioned in project properties dialog ->Cordova->Plugins)
Edit: The pasted line could look like
com.phonegap.plugins.speech=https://github.com/poiuytrez/SpeechRecognizer.git
or
com.phonegap.plugins.speech.SpeechRecognizer=https://github.com/poiuytrez/SpeechRecognizer.git
in case of some issues (I was able to build the project with the 1st line with friendly name but in case there is some catch, try this name instead)

Eclipse plugin not working properly

I developed an Eclipse plugin that compiles and runs java code in German. The technique I am using is that I translate the code to English and pass it to Java Compiler and get the results back and print it in the console.
The problem is that the plugin works when I run the plugin from Inside Eclipse but when I install the plugin in Eclipse so that when I open Eclipse it already exists there and start to test if a real user uses my plugin and creates a new Java project and try to the compile button in my plugin it says [The chosen operation is not currently available] ![Here is the the way I run and it opens a new Eclipse application with the installed plugin ]
Any help please
the way you installed your plugin sounds a little weird to me. So at first please try to export your plugin via the Export Wizard.
(Select Export -> Deployable plugins and features from your projects context menu)
Export your project as jar file and copy it to the 'plugin' folder of your eclipse instance.
After that it might be helpful to debug your plugin on OSGI-Level as there might be a problem loading your plugin (at least the error description you have posted indicates that).
Run eclipse with -console -noExit -consoleLog flags to open an OSGI console for debugging. After that try running ss <your-plugin-name> to see what the state of your plugin is.
The output gives you the ID of your plugin and the state it currently has. If the state of your plugin is not ACTIVE try running start <your-plugin-id> to see whether it starts correctly. If there is a problem starting your plugin you should get a respective log message. Feel free to post it here in case you need further help.
Otherwise there are plenty of options what might cause your problems, so maybe its better to try the steps I have described above before getting into details.
If you want to run eclipse plug-in withput using Eclipse Application , then you need to make a Feature project.
Now if your algorithm has something to do with system Path , you must
check Unpack plug-in and you should read the resource accordingly.
Like PLatformUI.getWorkBC() etc..
No other eclipse plug-in (jar) should be inside plugins directory of eclipse of same name of your plug-in. Ensure for this.

How to install Cucumber-JVM on Eclipse

I have searched all over the internet but a newbie on java I cant figure out how to simply install Cucumber-jvm on Eclipse.
What files do I need to download?
I already installed Eclipse. What do I need to do to get Cucumber-JVM on Eclipse?
If you mean the Cucumber plugin for Eclipse you can do this by:
Open Eclipse, Click Help → Install New Software.
Click on the "Add" button at the right side of 'Work with' field.
Give the Name (say, cucumber-eclipse) and input the URL 'https://cucumber.github.io/cucumber-eclipse/update-site' at Location field -> Click OK.
Check the box 'Cucumber Eclipse Plugin'.
Untick 'Contact all update sites during install...'.
Click Next.
Follow the instructions at the prompts.
Cucumber-JVM isn't an Eclipse library or plugin. You can download it in a variety of ways (I find Maven the easiest), and include it in your code.
Why didn't you try this plugin? I think it should be greater for your cucumber coding than the official plugin: BecauseCucumber
Installation steps are there: BecauseCucumber Installation
You can find how to install Cucumber-jvm in the Cucumber documentation
In addition, you'll need the Eclipse plugin.
Steps to Install Cucumber on Eclipse
Open Eclipse
Help > Install New Software > Add
Name: Cucumber
Location: https://cucumber.github.io/cucumber-eclipse/update-site
Then hit Add button
You will see Cucumber Eclipse Plugin. Check the box
Hit Finish button
Then hit Install Anyway
Then hit Restart.

oData4j sample eclipse project

I have downlaoded oData4J jar files from odata.org and I intend to do a sample producer, within a basic web service.
I assumed that InMemoryProducerExample.java from http://code.google.com/p/odata4j/ will do the job and most probably it is.
My problem is that I have no clue which type of project to create (Eclipse Java), how to deploy and test this example.
Does anyone have such a start up hellow world tutorial for odata step by step, or an eclipse project which use InMemoryProducerExample.java from oData. I really need a starting point and I can see one online.
Thanks.
The easiest way to run the odata4j example is to simply checkout their project, and open it in eclipse.
If you don't have mercurial installed, install it from here.
checkout the latest odata4j code using this mercurial command,
hg clone https://code.google.com/p/odata4j/
Open the project in eclipse using the maven eclipse plugin. If you are using the latest version of eclipse, this will be installed already, it not you can install it from here.
In eclipse, go import->maven->Existing maven projects
Then select the directory where mercurial checked out odata4j.
When eclipse finishes importing the projects, you can find InMemoryProducerExample, and right click on it to run it as a java program. You can run any of the other examples in the same way.
Meanwhile, forks of odata4j which continued their lives are also available on GitHub, see https://github.com/odata4j/odata4j and my own https://github.com/vorburger/odata4j/ (which I am about to transfer to https://github.com/lukinf), which included some minor fixes for opening it in Eclipse.

Categories