- Timestamp:
- 2011-09-01 08:46:53 (9 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
core/kauri-runtime-testfw/src/main/java/org/kauriproject/runtime/testfw/AbstractRuntimeTest.java (modified) (3 diffs)
-
modules/kauri-dbresources/kauri-dbresources-impl/pom.xml (modified) (1 diff)
-
modules/kauri-dbresources/kauri-dbresources-impl/src/test/java/org/kauriproject/dbresources/test/JpaTest.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/kauri-runtime-testfw/src/main/java/org/kauriproject/runtime/testfw/AbstractRuntimeTest.java
r1938 r1942 41 41 import org.restlet.Response; 42 42 import org.restlet.data.Method; 43 import org.restlet.data.Protocol; 44 import org.restlet.data.Reference; 43 45 import org.apache.log4j.ConsoleAppender; 44 46 import org.apache.log4j.PatternLayout; … … 333 335 protected Response assertedResponseFor(final String path, final int statusCode, final String responseText) throws IOException { 334 336 Client client = runtime.getRestserviceManager().getComponent().getContext().getClientDispatcher(); 335 Request request = new Request(Method.GET, "http://localhost:" + HTTP_TEST_PORT + path); 337 Reference ref = makeTestReference(path); 338 Request request = new Request(Method.GET, ref); 336 339 Response response = client.handle(request); 337 340 … … 350 353 return response; 351 354 } 355 356 protected Reference makeTestReference(final String path) { 357 return new Reference(Protocol.HTTP.getSchemeName(), "localhost", HTTP_TEST_PORT, path, null, null); 358 } 352 359 } -
trunk/modules/kauri-dbresources/kauri-dbresources-impl/pom.xml
r1795 r1942 185 185 </dependencies> 186 186 187 <build> 188 <plugins> 189 <plugin> 190 <!-- 191 Executes tests at the integration test phase, since we need the jar to load 192 it as module in the Kauri Runtime during testing. 193 --> 194 <groupId>org.apache.maven.plugins</groupId> 195 <artifactId>maven-surefire-plugin</artifactId> 196 <configuration> 197 <skip>true</skip> 198 <systemProperties> 199 <property><name>project.version</name><value>${project.version}</value></property> 200 </systemProperties> 201 </configuration> 202 <executions> 203 <execution> 204 <id>surefire-it</id> 205 <phase>integration-test</phase> 206 <goals> 207 <goal>test</goal> 208 </goals> 209 <configuration> 210 <skip>${maven.test.skip}</skip> 211 <systemProperties> 212 <property><name>project.version</name><value>${project.version}</value></property> 213 <property><name>console-logging</name><value>trace</value></property> 214 <!-- 215 <property><name>console-log-category</name><value>org.restlet</value></property> 216 --> 217 </systemProperties> 218 </configuration> 219 </execution> 220 </executions> 221 </plugin> 222 </plugins> 223 </build> 224 187 225 </project> -
trunk/modules/kauri-dbresources/kauri-dbresources-impl/src/test/java/org/kauriproject/dbresources/test/JpaTest.java
r1886 r1942 357 357 } 358 358 359 private Reference makeTestReference(final String dirPath) {360 return new Reference(Protocol.HTTP.getSchemeName(), "localhost", HTTP_TEST_PORT, dirPath, null, null);361 }362 363 359 private void loadStuff() throws IOException { 364 360 Dummy dummy1 = new Dummy(12, "My Dummy", new Date(), new Date());
Note: See TracChangeset
for help on using the changeset viewer.