com.ibm.tivoli.maximo.oslc.provider.unittest

Class TestOSLCNumAsset

  • java.lang.Object
    • com.ibm.tivoli.maximo.oslc.provider.unittest.TestOSLCNumAsset


  • public class TestOSLCNumAsset
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      TestOSLCNumAsset() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void setAuth(java.lang.String user, java.lang.String pwd, java.net.HttpURLConnection con) 
      void testBoolean()
      Test for boolean spi:children=true
      void testDate()
      Test for date spi:statusdate<2003-07-07T09:50:00-04:00
      void testDateRange()
      Test for date in range in fake format spi:statusdate<2003-07-07T09:50:00-04:00 and spi:statusdate>\"1999-02-06T14:16:00-05:00\""
      void testDateRangeplusStatus()
      Test for date in range combined with status
      void testLE1000()
      Test for number spi:totalcost<=1000
      void testLike()
      Test for String spi:status=%READY
      void testLike2()
      Test for String spi:status=OP%
      void testLike3()
      Test for String spi:status=%OT%
      void testLocation()
      Test for String spi:location in BR300 or BR450
      void testM20000()
      Test for number spi:totalcost>20000
      void testObjectStructure() 
      void testRange()
      Test for number in Range spi:totalcost>1000 and spi:totalcost<10000
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestOSLCNumAsset

        public TestOSLCNumAsset()
    • Method Detail

      • testObjectStructure

        public void testObjectStructure()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setAuth

        public void setAuth(java.lang.String user,
                            java.lang.String pwd,
                            java.net.HttpURLConnection con)
      • testM20000

        public void testM20000()
                        throws java.lang.Exception
        Test for number spi:totalcost>20000
        Throws:
        java.lang.Exception
      • testLE1000

        public void testLE1000()
                        throws java.lang.Exception
        Test for number spi:totalcost<=1000
        Throws:
        java.lang.Exception
      • testRange

        public void testRange()
                       throws java.lang.Exception
        Test for number in Range spi:totalcost>1000 and spi:totalcost<10000
        Throws:
        java.lang.Exception
      • testLocation

        public void testLocation()
                          throws java.lang.Exception
        Test for String spi:location in BR300 or BR450
        Throws:
        java.lang.Exception
      • testBoolean

        public void testBoolean()
                         throws java.lang.Exception
        Test for boolean spi:children=true
        Throws:
        java.lang.Exception
      • testDate

        public void testDate()
                      throws java.lang.Exception
        Test for date spi:statusdate<2003-07-07T09:50:00-04:00
        Throws:
        java.lang.Exception
      • testDateRange

        public void testDateRange()
                           throws java.lang.Exception
        Test for date in range in fake format spi:statusdate<2003-07-07T09:50:00-04:00 and spi:statusdate>\"1999-02-06T14:16:00-05:00\""
        Throws:
        java.lang.Exception
      • testDateRangeplusStatus

        public void testDateRangeplusStatus()
                                     throws java.lang.Exception
        Test for date in range combined with status
        Throws:
        java.lang.Exception
      • testLike

        public void testLike()
                      throws java.lang.Exception
        Test for String spi:status=%READY
        Throws:
        java.lang.Exception
      • testLike2

        public void testLike2()
                       throws java.lang.Exception
        Test for String spi:status=OP%
        Throws:
        java.lang.Exception
      • testLike3

        public void testLike3()
                       throws java.lang.Exception
        Test for String spi:status=%OT%
        Throws:
        java.lang.Exception