timmy00274672 / oostethys

Automatically exported from code.google.com/p/oostethys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

failed test- testDescribeSensorPost(org.oostethys.sos.test.Netcdf2sos_mbari_ctd_xmlPost_Test)

GoogleCodeExporter opened this issue · comments

-------------------------------------------------------------------------------
Test set: org.oostethys.sos.test.Netcdf2sos_mbari_ctd_xmlPost_Test
-------------------------------------------------------------------------------
Tests run: 6, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.139 sec
<<< FAILURE!
testgetObservation(org.oostethys.sos.test.Netcdf2sos_mbari_ctd_xmlPost_Test) 
Time elapsed: 0.029 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected text to
contain:<<om:ObservationCollection> was not:<<?xml version="1.0"
encoding="UTF-8"?>
<ExceptionReport xmlns="http://www.opengis.net/ows/1.1"
version="1.0.0"><Exception
exceptionCode="NoApplicableCode"><ExceptionText>java.lang.Exception: XML
Instance is not
valid:/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/tes
t-classes/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
</ExceptionText></Exception></ExceptionReport>
>
    at junit.framework.Assert.fail(Assert.java:47)
    at org.oostethys.test.OOSTethysTest.assertContains(OOSTethysTest.java:34)
    at
org.oostethys.sos.test.Netcdf2sos_mbari_ctd_xmlPost_Test.testgetObservation(Netc
df2sos_mbari_ctd_xmlPost_Test.java:87)

testDescribeSensorPost(org.oostethys.sos.test.Netcdf2sos_mbari_ctd_xmlPost_Test)
 Time elapsed: 0.022 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected text to
contain:<<gml:beginPosition>2008-06-09T09:36:19Z</gml:beginPosition>> was
not:<<?xml version="1.0" encoding="UTF-8"?>
<ExceptionReport xmlns="http://www.opengis.net/ows/1.1"
version="1.0.0"><Exception
exceptionCode="NoApplicableCode"><ExceptionText>java.lang.Exception: XML
Instance is not
valid:/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/tes
t-classes/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: uri in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
/Users/bermudez/Documents/workspace_maven/oostethys-java-server/target/test-clas
ses/mbari-oost.xml:0:
error: cvc-complex-type.4: Expected attribute: dimension in element
variable@http://www.oostethys.org/schemas/0.1.0/oostethys-netcdf.
</ExceptionText></Exception></ExceptionReport>
>
    at junit.framework.Assert.fail(Assert.java:47)
    at org.oostethys.test.OOSTethysTest.assertContains(OOSTethysTest.java:34)
    at
org.oostethys.sos.test.Netcdf2sos_mbari_ctd_xmlPost_Test.testDescribeSensorPost(
Netcdf2sos_mbari_ctd_xmlPost_Test.java:35)

testDescribeSensorPostErrorBaaProcedureName(org.oostethys.sos.test.Netcdf2sos_mb
ari_ctd_xmlPost_Test)
 Time elapsed: 0.018 sec  <<< FAILURE!
junit.framework.ComparisonFailure: correct exception code
expected:<[InvalidParameterValu]e> but was:<[NoApplicableCod]e>
    at junit.framework.Assert.assertEquals(Assert.java:81)
    at
org.oostethys.sos.test.Netcdf2sos_mbari_ctd_xmlPost_Test.testDescribeSensorPostE
rrorBaaProcedureName(Netcdf2sos_mbari_ctd_xmlPost_Test.java:53)

testgetObservationWrongParameters(org.oostethys.sos.test.Netcdf2sos_mbari_ctd_xm
lPost_Test)
 Time elapsed: 0.022 sec  <<< FAILURE!
junit.framework.ComparisonFailure: correct exception code
expected:<[InvalidParameterValu]e> but was:<[NoApplicableCod]e>
    at junit.framework.Assert.assertEquals(Assert.java:81)
    at
org.oostethys.sos.test.Netcdf2sos_mbari_ctd_xmlPost_Test.testgetObservationWrong
Parameters(Netcdf2sos_mbari_ctd_xmlPost_Test.java:141)


Original issue reported on code.google.com by ber...@gmail.com on 22 Sep 2009 at 3:32

fixed in revision r287

Original comment by ber...@gmail.com on 13 Oct 2009 at 11:19

  • Changed state: Fixed