<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.netapsys.fr/index.php/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>Netapsys Blog - Tests JUnit4 combiné avec Spring et Spring MVC en mode transactionnel  - Commentaires</title>
  <link>http://blog.netapsys.fr/index.php/</link>
  <description></description>
  <language>fr</language>
  <pubDate>Tue, 07 Sep 2010 08:07:18 +0200</pubDate>
  <copyright>Netapsys 2008 - 2009</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
    
    <item>
    <title>Tests JUnit4 combiné avec Spring et Spring MVC en mode transactionnel - aucun</title>
    <link>http://blog.netapsys.fr/index.php/post/2009/01/08/Tests-Unitaires-et-dintegration-avec-Junit4-et-Spring-MVC-en-mode-transactionnel#c144</link>
    <guid isPermaLink="false">urn:md5:49de34cfdd16e2ee52ce34b485966c83</guid>
    <pubDate>Sat, 21 Nov 2009 15:56:14 +0100</pubDate>
    <dc:creator>aucun</dc:creator>
    
    <description>&lt;p&gt;l'erreur vient de la version de JUnit il faut la 4.4 pas la 4.5 car la classe Assume$AssumptionViolatedException n'existe pas dans la version 4.5, et d'autre erreurs sont apparues par la suite.&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>Tests JUnit4 combiné avec Spring et Spring MVC en mode transactionnel - aucun</title>
    <link>http://blog.netapsys.fr/index.php/post/2009/01/08/Tests-Unitaires-et-dintegration-avec-Junit4-et-Spring-MVC-en-mode-transactionnel#c143</link>
    <guid isPermaLink="false">urn:md5:04ba0564d4ccb366aa8ff14b7f6938c3</guid>
    <pubDate>Sat, 21 Nov 2009 14:31:34 +0100</pubDate>
    <dc:creator>aucun</dc:creator>
    
    <description>&lt;p&gt;je suis débutant en spring j'ai donc suivi le tuto du bout en bout qui est bien fait, puis j'ai fait un copier coller de votre projet dans le répertoire créé pour cet effet au moment de la compile j'ai une erreur que voici :&lt;/p&gt;



&lt;p&gt;org.apache.maven.surefire.booter.SurefireExecutionException: org/junit/Assume$AssumptionViolatedException; nested exception is java.lang.NoClassDefFoundError: org/junit/Assume$AssumptionViolatedException&lt;br /&gt;
java.lang.NoClassDefFoundError: org/junit/Assume$AssumptionViolatedException&lt;br /&gt;
at org.springframework.test.context.junit4.SpringMethodRoadie.runTestMethod(SpringMethodRoadie.java:240)&lt;br /&gt;
at org.springframework.test.context.junit4.SpringMethodRoadie$RunBeforesThenTestThenAfters.run(SpringMethodRoadie.java:333)&lt;br /&gt;
at org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepetitions(SpringMethodRoadie.java:217)&lt;br /&gt;
at org.springframework.test.context.junit4.SpringMethodRoadie.runTest(SpringMethodRoadie.java:197)&lt;br /&gt;
at org.springframework.test.context.junit4.SpringMethodRoadie.run(SpringMethodRoadie.java:143)&lt;br /&gt;
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:142)&lt;br /&gt;
at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:59)&lt;br /&gt;
at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:52)&lt;br /&gt;
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)&lt;br /&gt;
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)&lt;br /&gt;
at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:50)&lt;br /&gt;
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)&lt;br /&gt;
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)&lt;br /&gt;
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)&lt;br /&gt;
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)&lt;br /&gt;
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br /&gt;
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;br /&gt;
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;br /&gt;
at java.lang.reflect.Method.invoke(Method.java:597)&lt;br /&gt;
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)&lt;br /&gt;
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)&lt;br /&gt;
Caused by: java.lang.ClassNotFoundException: org.junit.Assume$AssumptionViolatedException&lt;br /&gt;
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)&lt;br /&gt;
at java.security.AccessController.doPrivileged(Native Method)&lt;br /&gt;
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)&lt;br /&gt;
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)&lt;br /&gt;
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)&lt;br /&gt;
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)&lt;br /&gt;
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)&lt;br /&gt;
... 21 more&lt;br /&gt;
14:23:06,515 INFO  (AbstractApplicationContext.java:816) Closing org.springframework.context.support.GenericApplicationContext@152c4d9: display name [org.springframework.context.support.GenericApplicationContext@152c4d9]; startup date [Sat Nov 21 14:23:05 CET 2009]; root of context hierarchy&lt;br /&gt;
14:23:06,515 INFO  (DefaultSingletonBeanRegistry.java:399) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@adb1d4: defining beans [clientControllerSpring,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,daoImpl,myService,dataSource,transactionManager]; root of factory hierarchy&lt;br /&gt;
[ERROR]&lt;/p&gt;


&lt;p&gt;Mojo:&lt;/p&gt;


&lt;p&gt;org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test&lt;/p&gt;


&lt;p&gt;FAILED for project:&lt;/p&gt;


&lt;p&gt;com.netapsys.springmvc:spring-mvc-webapp:war:1.0-SNAPSHOT&lt;/p&gt;


&lt;p&gt;Reason:&lt;/p&gt;


&lt;p&gt;There are test failures.&lt;/p&gt;


&lt;p&gt;Please refer to C:\ECLIPSE_3.5\JUnitSpringSpringMVC_ModeTrasactionel\spring-mvc-webapp\target\surefire-reports for the individual test results.&lt;/p&gt;





&lt;p&gt;[INFO] ------------------------------------------------------------------------&lt;br /&gt;
[INFO] For more information, run with the -e flag&lt;br /&gt;
[INFO] ------------------------------------------------------------------------&lt;br /&gt;
[INFO] BUILD FAILED&lt;br /&gt;
[INFO] ------------------------------------------------------------------------&lt;br /&gt;
[INFO] Total time: 6 seconds&lt;br /&gt;
[INFO] Finished at: Sat Nov 21 14:23:06 CET 2009&lt;br /&gt;
[INFO] Final Memory: 10M/24M&lt;br /&gt;
[INFO] ------------------------------------------------------------------------&lt;/p&gt;


&lt;p&gt;Cordialement merzouk.&lt;/p&gt;</description>
  </item>
      
</channel>
</rss>