Changeset 1941


Ignore:
Timestamp:
2011-09-01 08:26:05 (9 months ago)
Author:
mpo
Message:

Found another copy-paste-modified testRequest occurance
Adding the same level of logging during test

Location:
trunk/core/kauri-runtime-tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/kauri-runtime-tests/pom.xml

    r1790 r1941  
    5757  <build> 
    5858    <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>     
    5992    </plugins> 
    6093  </build> 
  • trunk/core/kauri-runtime-tests/src/test/java/org/kauriproject/runtime/test/ServiceProtocolRemainingPartTest.java

    r1523 r1941  
    2727import org.kauriproject.runtime.model.ServerConnectorDefinition; 
    2828import org.kauriproject.runtime.testfw.AbstractRuntimeTest; 
    29 import org.restlet.Request; 
    30 import org.restlet.Response; 
    31 import org.restlet.data.Method; 
    3229 
    3330/** 
     
    5148 
    5249    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");  
    5651    } 
    5752} 
Note: See TracChangeset for help on using the changeset viewer.