Changeset 1941
- Timestamp:
- 2011-09-01 08:26:05 (9 months ago)
- Location:
- trunk/core/kauri-runtime-tests
- Files:
-
- 2 edited
-
pom.xml (modified) (1 diff)
-
src/test/java/org/kauriproject/runtime/test/ServiceProtocolRemainingPartTest.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/kauri-runtime-tests/pom.xml
r1790 r1941 57 57 <build> 58 58 <plugins> 59 <plugin> 60 <!-- 61 Executes tests at the integration test phase, since we need the jar to load 62 it as module in the Kauri Runtime during testing. 63 --> 64 <groupId>org.apache.maven.plugins</groupId> 65 <artifactId>maven-surefire-plugin</artifactId> 66 <configuration> 67 <skip>true</skip> 68 <systemProperties> 69 <property><name>project.version</name><value>${project.version}</value></property> 70 </systemProperties> 71 </configuration> 72 <executions> 73 <execution> 74 <id>surefire-it</id> 75 <phase>integration-test</phase> 76 <goals> 77 <goal>test</goal> 78 </goals> 79 <configuration> 80 <skip>${maven.test.skip}</skip> 81 <systemProperties> 82 <property><name>project.version</name><value>${project.version}</value></property> 83 <property><name>console-logging</name><value>trace</value></property> 84 <!-- 85 <property><name>console-log-category</name><value>org.restlet</value></property> 86 --> 87 </systemProperties> 88 </configuration> 89 </execution> 90 </executions> 91 </plugin> 59 92 </plugins> 60 93 </build> -
trunk/core/kauri-runtime-tests/src/test/java/org/kauriproject/runtime/test/ServiceProtocolRemainingPartTest.java
r1523 r1941 27 27 import org.kauriproject.runtime.model.ServerConnectorDefinition; 28 28 import org.kauriproject.runtime.testfw.AbstractRuntimeTest; 29 import org.restlet.Request;30 import org.restlet.Response;31 import org.restlet.data.Method;32 29 33 30 /** … … 51 48 52 49 public void testServiceProtocol() throws IOException { 53 Response response = runtime.getRestserviceManager().getComponent().getContext().getClientDispatcher().handle(new Request(Method.GET, "http://localhost:" + HTTP_TEST_PORT + "/")); 54 assertEquals(200, response.getStatus().getCode()); 55 assertEquals("/foo/bar", response.getEntity().getText()); 50 assertedResponseFor("/", "/foo/bar"); 56 51 } 57 52 }
Note: See TracChangeset
for help on using the changeset viewer.