My favorites | Sign in
Project Home Downloads Wiki Issues Source
Details: Show all Hide all

Older

  • Oct 17, 2011
    issue 8 (Compilation error using XMLParameterizedRunner) commented on by jasonh...@gmail.com   -   Since JUnit 4.5: The default runner for JUnit 4 test classes has been refactored. The old version was named TestClassRunner, and the new is named JUnit4ClassRunner. Likewise, OldTestClassRunner is now JUnit3ClassRunner. The new design allows variations in running individual test classes to be expressed with fewer custom classes. For a good example, see the source to org.junit.experimental.theories.Theories. source: http://junit.sourceforge.net/README.html Could you please update class org.junitext.runners.AnnotationRunner as per change in JUnit? Jason
    Since JUnit 4.5: The default runner for JUnit 4 test classes has been refactored. The old version was named TestClassRunner, and the new is named JUnit4ClassRunner. Likewise, OldTestClassRunner is now JUnit3ClassRunner. The new design allows variations in running individual test classes to be expressed with fewer custom classes. For a good example, see the source to org.junit.experimental.theories.Theories. source: http://junit.sourceforge.net/README.html Could you please update class org.junitext.runners.AnnotationRunner as per change in JUnit? Jason
  • Jul 12, 2011
    Main Wiki page commented on by hicksj...@googlemail.com   -   Is this project available via Maven? If so, what are the parameters please?
    Is this project available via Maven? If so, what are the parameters please?
  • Mar 04, 2011
    issue 9 (Allow @Prerequisite on test class) reported by nicolas....@gmail.com   -   I have a top-level test suite annotated with @RunWith(Suite.class), which itself contains other test suites, and so on. I would like to add a @Prerequisite annotation to one of these classes, but currently the annotation is @Target(ElementType.METHOD) only.
    I have a top-level test suite annotated with @RunWith(Suite.class), which itself contains other test suites, and so on. I would like to add a @Prerequisite annotation to one of these classes, but currently the annotation is @Target(ElementType.METHOD) only.
  • Mar 04, 2011
    issue 9 (Allow @Prerequisite on test class) reported by nicolas....@gmail.com   -   I have a top-level test suite annotated with @RunWith(Suite.class), which itself contains other test suites, and so on. I would like to add a @Prerequisite annotation to one of these classes, but currently the annotation is @Target(ElementType.METHOD) only.
    I have a top-level test suite annotated with @RunWith(Suite.class), which itself contains other test suites, and so on. I would like to add a @Prerequisite annotation to one of these classes, but currently the annotation is @Target(ElementType.METHOD) only.
  • Aug 10, 2010
    issue 8 (Compilation error using XMLParameterizedRunner) commented on by srivastp   -   Found that XMLParameterizedRunner extends TestClassRunner. TestClassRunner is missing from JUnit4.5. Works fine using JUnit4.4. Moving forward, any thoughts on updating the class for forward compatibility? Thanks. -Piyush
    Found that XMLParameterizedRunner extends TestClassRunner. TestClassRunner is missing from JUnit4.5. Works fine using JUnit4.4. Moving forward, any thoughts on updating the class for forward compatibility? Thanks. -Piyush
  • Aug 10, 2010
    issue 8 (Compilation error using XMLParameterizedRunner) commented on by srivastp   -   Found that XMLParameterizedRunner extends TestClassRunner. TestRunner is missing from JUnit4.5. Works fine using JUnit4.4. Moving forward, any thoughts on updating the class for forward compatibility? Thanks. -Piyush
    Found that XMLParameterizedRunner extends TestClassRunner. TestRunner is missing from JUnit4.5. Works fine using JUnit4.4. Moving forward, any thoughts on updating the class for forward compatibility? Thanks. -Piyush
  • Aug 10, 2010
    issue 8 (Compilation error using XMLParameterizedRunner) commented on by srivastp   -   Error Message on compilation: Type mismatch: cannot convert from Class<XMLParameterizedRunner> to Class<? extends Runner> Version of the product: JRE1.6 JUnit 4.5 junitext-0.2.4.jar junit-ui-runners-3.8.2.jar
    Error Message on compilation: Type mismatch: cannot convert from Class<XMLParameterizedRunner> to Class<? extends Runner> Version of the product: JRE1.6 JUnit 4.5 junitext-0.2.4.jar junit-ui-runners-3.8.2.jar
  • Aug 09, 2010
    issue 8 (Compilation error using XMLParameterizedRunner) reported by srivastp   -   What steps will reproduce the problem? 1. Created a Groovy test class. Tried running the test using: @RunWith(XMLParameterizedRunner.class) 2. Added the two junitetx jars in project classpath. What is the expected output? What do you see instead? - Get a compilation error on XMLParameterizedRunner What version of the product are you using? On what operating system? Using junit4 with JDK1.5 - in Eclipse Could you suggest what could be the issue? Thanks. -Piyush
    What steps will reproduce the problem? 1. Created a Groovy test class. Tried running the test using: @RunWith(XMLParameterizedRunner.class) 2. Added the two junitetx jars in project classpath. What is the expected output? What do you see instead? - Get a compilation error on XMLParameterizedRunner What version of the product are you using? On what operating system? Using junit4 with JDK1.5 - in Eclipse Could you suggest what could be the issue? Thanks. -Piyush
  • Mar 25, 2010
    issue 7 (Cannot use java.util.Date bean property) reported by manish.jignasa   -   What steps will reproduce the problem? 1. Create a bean that has a property of type java.util.Date 2. In the XML file containing the test data, declare the bean and specifying a value for the date property. 3. Run the junit test (with the @RunsWith and @XMLParameters specified) What is the expected output? What do you see instead? Expecting the bean to be created, and passed in the constructor of the test. Instead getting an IllegalArgumentException thrown because Digester is trying to invoke setBirthDate(String s) instead of setBirthDate(Date s). It appears that java.util.Date is not currently handled at all. The workaround would be add setBirthDate(String s) and parse the date but that would contaminate the bean. Would much rather prefer to register a custom converter with Digester - however, can't find any hooks within XMLParameterizedRunner to register the convertor, see: http://stackoverflow.com/questions/1662304/how-do-i-parse-an-xml-file-with-commons-digester-and-have-it-populate-a-java-util What version of the product are you using? On what operating system? JDK 6 Windows XP JUnitExt 0.2.4 Junit 4.2 Please provide any additional information below. <?xml version="1.0" encoding="ISO-8859-1" ?> <tests> <test> <bean id="person" class="com.x.model.Person" > <property name="name" value="Daneel Olivaw" /> <property name="address" value="New Jersey" /> <property name="birthDate" type="java.util.Date" value="10/01/1977"/> </bean> </test> </tests>
    What steps will reproduce the problem? 1. Create a bean that has a property of type java.util.Date 2. In the XML file containing the test data, declare the bean and specifying a value for the date property. 3. Run the junit test (with the @RunsWith and @XMLParameters specified) What is the expected output? What do you see instead? Expecting the bean to be created, and passed in the constructor of the test. Instead getting an IllegalArgumentException thrown because Digester is trying to invoke setBirthDate(String s) instead of setBirthDate(Date s). It appears that java.util.Date is not currently handled at all. The workaround would be add setBirthDate(String s) and parse the date but that would contaminate the bean. Would much rather prefer to register a custom converter with Digester - however, can't find any hooks within XMLParameterizedRunner to register the convertor, see: http://stackoverflow.com/questions/1662304/how-do-i-parse-an-xml-file-with-commons-digester-and-have-it-populate-a-java-util What version of the product are you using? On what operating system? JDK 6 Windows XP JUnitExt 0.2.4 Junit 4.2 Please provide any additional information below. <?xml version="1.0" encoding="ISO-8859-1" ?> <tests> <test> <bean id="person" class="com.x.model.Person" > <property name="name" value="Daneel Olivaw" /> <property name="address" value="New Jersey" /> <property name="birthDate" type="java.util.Date" value="10/01/1977"/> </bean> </test> </tests>
  • Jan 27, 2010
    issue 6 (map inject seems not support) reported by larkself   -   What steps will reproduce the problem? 1. write a bean with member in map type 2. create xml file and set the map value in it 3. run it with XMLParameterizedRunner What is the expected output? What do you see instead? run correctly actual result: argument type mismatch - had objects of type "java.lang.String" but expected signature "java.util.Map" What version of the product are you using? On what operating system? junit4.2, junitext0.2.4 Please provide any additional information below.
    What steps will reproduce the problem? 1. write a bean with member in map type 2. create xml file and set the map value in it 3. run it with XMLParameterizedRunner What is the expected output? What do you see instead? run correctly actual result: argument type mismatch - had objects of type "java.lang.String" but expected signature "java.util.Map" What version of the product are you using? On what operating system? junit4.2, junitext0.2.4 Please provide any additional information below.
 
Powered by Google Project Hosting