score:1
turns out that it was because i was extending testcase which makes the junit runner think it is still version 3. even if you tell it to use version 4.
score:0
i am not sure this is linked at all to some kind of os length limitation, but rather to:
- some hard-coded parametrization based on the name of the class.
- or to some problem with the source folder.
indeed, you message looks like:
from quicktip: junit: the input type of the launch configuration does not exist
if you are getting the above error message in eclipse ide, while running your test case, just make sure that you have the test class as a part of the “eclipse source folder” definition.
easiest way. right click on the folder –> build path –>use as source folder
there could be a length limit issue (you can see some projects undergoing a refactoring "to be under the file length limit" (org.eclipse.jdt.core.tests.performance
).
but that is strange, considering the length limit on windows are:
- 32767 characters for the maximum command line length for the
createprocess
function. this limitation comes from the unicode_string structure. createprocess is the core function for creating processes, so if you are talking directly to win32, then that's the only limit you have to worry about. but if you are reaching createprocess by some other means, then the path you travel through may have other limits. - 8192 character command line length limit imposed by cmd.exe.
- 2048 length due to the
internet_max_url_length
(around 2048) command line length limit imposed by theshellexecute/ex
functions. (if you are running on windows 95, then the limit is onlymax_path
.) - 32767 characters for the maximum size of your environment (includes the all the variable names plus all the values)
maybe the total length of the javac command
does exceed one of those limits, and fail to compile one of those junit java classes, meaning it can no longer be executed (and trigger the above error message)
score:0
check your run configuration under run -> run... your test has a configuration there. check the "test class" field.
score:1
by default i believe the junit runners are set to look for *test files, so it will filter out testcase. people often use *testcase as a base class without any tests of its own. not sure if that's what you're running into. if so, it's configurable in the runner.
Source: stackoverflow.com
Related Query
- Does JUnit have some weird 30 character length limit on the name of your class?
- How does eclipse know the name of your project?
- How to avoid Eclipse importing a class when putting the class name in the comments, so that checkstyle does not complain later?
- Does Eclipse have the ability to remove all references to a class when the class is removed?
- Don't have option to create the jUnit test class
- How can getViewSite().getWorkbenchWindow() make sense if the IViewSite class does not have any children?
- My class has some unknown error that when ran, the JFrame does not respond after inputting a value
- the project yyy does not have any gwt sdks on its build path
- How do you get the fully qualified class name in Eclipse?
- Does the Eclipse editor have an equivalent of Emacs's "align-regex"?
- "The project: swing which is referenced by the classpath, does not exist" in Eclipse when project name is the same as workspace name
- Can I have more than one class containing the main() method in a Java project?
- What does the dollar sign at the end of a class mean in Eclipse MAT?
- Does eclipse have a debugger "step into selected" option that prompts for the method to step into?
- Eclipse Junit run configuration that takes the current selected test class as an arg?
- Is it possible to add breakpoints to a class which I don't have the source code for?
- What impact does the Android build target have on the final APK?
- Does Eclipse shows what are the list of classes extending current class
- The service class does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly
- Why does Eclipse not recognize the build() method from the Notification.Builder class to return a Notification object?
- Why does Eclipse let me compile some Java 7 language features into Java 6 class files?
- Renaming a .scala file in Scala IDE does not rename the class
- Eclipse plugin : Get the enclosing class and member name
- The Jar of this class file blongs to container Android 2.0.1 which does not allow modifications
- The serializable class Employee does not declare a static final serialVersionUID field of type long
- Memory analysis in Android: dominator_tree does not show all the instances of some objects
- How to generate the Builder java class for your POJO
- Class ch.qos.logback.classic.LoggerContext does not implement the requested interface org.slf4j.ILoggerFactory
- Two different .jar with same Package name and same Class name. How to get the one?
- Why does this error occur when I try to run a Junit test-case on the Android emulator?
More Query from same tag
- Why JUnit "Run as->JUnit" and "Cover as -> Junit" has different behavior?
- How can I put an image in, magnify and minimize it?
- I am getting FATAL EXCEPTION
- RTC source control files
- Warning :Maven integration requires Eclipse be running in JDK
- deploying a java based web site
- How to step in a conditional if in eclipse debugging
- Eclipse: What is a better way to find the implementation of a virtual function?
- Hide maven build Directory in eclipseJuno/M2e/subclipse
- How do I automatically run a Maven configuration when I save a Java file in Eclipse?
- program g++ not found in path
- How to get IProject Properties
- How do I delete a row in an excel (csv) sheet using Java?
- Could not create connection to database server - Eclipse MySQL error
- Eclipse secure storage linux
- Can Android SDK tools be installed in Scala IDE?
- Exported eclipse runnable .jar will not run
- "Gradle location is incorrect" when migrating android project from eclipse to android studio
- Show java errors in console in Eclipse
- SVN with Eclipse Integration
- error playing sound java (No line matching interface Clip supporting format)
- How to open an existing maven project?
- Maven build error on MAcOS : " unmappable character for encoding UTF-8"
- @Version breaks in Web Project
- The method getString(int) is undefined for the type Apps
- Eclipse Android java.lang.NoClassDefFoundError
- Eclipse PDT
- cannot find symbol on file already excluded
- Using cvs add command in Ant to 'update' a module
- Eclipse JMeter v3.1 implementation of the project error "check JMeterHome and libraries"