Author: ningjiang
Date: Fri Oct 30 05:13:17 2009
New Revision: 831202
URL: http://svn.apache.org/viewvc?rev=831202&view=rev
Log:
CAMEL-2119 using the JUnit 4 for testing
Modified:
camel/trunk/examples/camel-example-spring-javaconfig/src/test/java/org/apache/camel/example/spring/javaconfig/IntegrationTest.java
Modified:
camel/trunk/examples/camel-example-spring-javaconfig/src/test/java/org/apache/camel/example/spring/javaconfig/IntegrationTest.java
URL:
http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-spring-javaconfig/src/test/java/org/apache/camel/example/spring/javaconfig/IntegrationTest.java?rev=831202&r1=831201&r2=831202&view=diff
==============================================================================
---
camel/trunk/examples/camel-example-spring-javaconfig/src/test/java/org/apache/camel/example/spring/javaconfig/IntegrationTest.java
(original)
+++
camel/trunk/examples/camel-example-spring-javaconfig/src/test/java/org/apache/camel/example/spring/javaconfig/IntegrationTest.java
Fri Oct 30 05:13:17 2009
@@ -16,22 +16,25 @@
*/
package org.apache.camel.example.spring.javaconfig;
+import org.junit.Assert;
+import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
-import junit.framework.TestCase;
import org.apache.camel.CamelContext;
import org.apache.camel.spring.javaconfig.Main;
/**
* @version $Revision$
*/
-public class IntegrationTest extends TestCase {
+public class IntegrationTest extends Assert {
+ @Test
public void testCamelRulesDeployCorrectlyInSpring() throws Exception {
// let's boot up the Spring application context for 2 seconds to check
that it works OK
Main.main("-duration", "2s", "-bp",
"org.apache.camel.example.spring.javaconfig");
}
+ @Test
public void testStartApplicationContext() throws Exception {
// test to boot up the application context from spring configuration
ApplicationContext context = new
ClassPathXmlApplicationContext("/META-INF/spring/camel-context.xml");