You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-dev@ws.apache.org by sc...@apache.org on 2005/03/01 19:29:46 UTC
svn commit: r155810 -
incubator/apollo/trunk/src/site/content/example/src/test/org/oasisOpen/docs/wsrf/InteropTestCase.java
Author: scamp
Date: Tue Mar 1 10:29:44 2005
New Revision: 155810
URL: http://svn.apache.org/viewcvs?view=rev&rev=155810
Log: (empty)
Modified:
incubator/apollo/trunk/src/site/content/example/src/test/org/oasisOpen/docs/wsrf/InteropTestCase.java
Modified: incubator/apollo/trunk/src/site/content/example/src/test/org/oasisOpen/docs/wsrf/InteropTestCase.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/test/org/oasisOpen/docs/wsrf/InteropTestCase.java?view=diff&r1=155809&r2=155810
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/test/org/oasisOpen/docs/wsrf/InteropTestCase.java (original)
+++ incubator/apollo/trunk/src/site/content/example/src/test/org/oasisOpen/docs/wsrf/InteropTestCase.java Tue Mar 1 10:29:44 2005
@@ -65,109 +65,110 @@
}
//***** tests ********
- public void createPrinter() throws IOException
- {
+ public void testCreatePrinter() throws IOException
+ {
String response = sendRequest(m_printerFactoryURL, SOAP_REQ_CREATE_PRINTER);
assertTrue(response.indexOf("CreatePrinterResponse") > -1);
}
- public void validatePrinterInitialState()
- {
-
+ public void testValidatePrinterInitialState() throws IOException {
+ String response = sendRequest(m_printerURL, "GetPrinterPropertiesDoc.soap");
+ assertTrue(response.indexOf("job_count>0") > -1);
+ assertTrue(response.indexOf("accepting_jobs>false") > -1);
}
- public void getPrinterQueueCount_SCENARIO_A1()
+ public void testGetPrinterQueueCount_SCENARIO_A1 ()
{
}
- public void getPrinterStateAndQueueCount_SCENARIO_A2()
+ public void testGetPrinterStateAndQueueCount_SCENARIO_A2 ()
{
}
- public void getPrinterResourcePropertiesDocument_SCENARIO_A3()
+ public void testGetPrinterResourcePropertiesDocument_SCENARIO_A3 ()
{
}
- public void queryResourceProperties_SCENARIO_A4()
+ public void testQueryResourceProperties_SCENARIO_A4 ()
{
}
- public void queryCompletedJobs_SCENARIO_VARIANT()
+ public void testQueryCompletedJobs_SCENARIO_VARIANT()
{
//job_properties[contains(job_state,"completed")]/*
//todo ensure job state is set to completed
}
- public void updateResourceProperties_SCENARIO_B1()
+ public void testUpdateResourceProperties_SCENARIO_B1()
{
}
- public void failInsertResourceProps_SCENARIO_B1_FAIL()
+ public void testFailInsertResourceProps_SCENARIO_B1_FAIL()
{
}
- public void setResourceProperties_SCENARIO_B2()
+ public void testSetResourceProperties_SCENARIO_B2()
{
//validate printer props are updated
}
- public void multiSetResourceProps_SCENARIO_B3()
+ public void testMultiSetResourceProps_SCENARIO_B3()
{
//there are 2 calls in the spec
}
- public void failMultiSetResourceProps_SCENARIO_B3_VARIANT()
+ public void testFailMultiSetResourceProps_SCENARIO_B3_VARIANT()
{
}
- public void resetToInitialState_SCENARIO_B3_RESET()
+ public void testResetToInitialState_SCENARIO_B3_RESET()
{
}
- public void printJob_SCENARIO_C()
+ public void testPrintJob_SCENARIO_C()
{
}
- public void validatePrinterJobProperties()
+ public void testValidatePrinterJobProperties()
{
//job_state pending until printing starts
//todo look at job states
}
- public void destroy_SCENARIO_D()
+ public void testDestroy_SCENARIO_D()
{
//note a second destroy should fail
}
- public void failDestroy_SCENARIO_D_FAIL()
+ public void testFailDestroy_SCENARIO_D_FAIL()
{
//note a second destroy should fail
}
- public void scheduledTermination_SCENARIO_E()
+ public void testScheduledTermination_SCENARIO_E()
{
//validateprinterjobprops
}
- public void setTerminationTime_SCENARIO_E_CONTINUED()
+ public void testSetTerminationTime_SCENARIO_E_CONTINUED()
{
}
- public void sendDocument_SCENARIO_E_CONTINUED()
+ public void testSendDocument_SCENARIO_E_CONTINUED()
{
}
---------------------------------------------------------------------
To unsubscribe, e-mail: apollo-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: apollo-dev-help@ws.apache.org