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

Class TestOSLCAttachment

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


  • public class TestOSLCAttachment
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void checkDocContent()
      Check the Document content = "hello testing"
      void checkDocList()
      Check if any Document in the list matches what we upload
      void checkUrlMeta()
      Check the URL meta with dcterms:description, spi:docType, spi:urlType and oslc_cm:attachmentSize
      void createBasicWO()
      Test for creating WorkOrder by POST method
      void deleteTheFile()
      Delete the Document and check by GET
      void deleteThePage()
      Delete the workorder and check by GET
      void getDocLink()
      Get the spi:doclinks, POST the attachment
      void getDocPage()
      Get the Content of the WorkOrder by GET method
      void setAuth(java.lang.String user, java.lang.String pwd, java.net.HttpURLConnection con) 
      void testObjectStructure() 
      • Methods inherited from class java.lang.Object

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

      • TestOSLCAttachment

        public TestOSLCAttachment()
    • 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)
      • createBasicWO

        public void createBasicWO()
                           throws java.lang.Exception
        Test for creating WorkOrder by POST method
        Throws:
        java.lang.Exception
      • getDocPage

        public void getDocPage()
                        throws java.lang.Exception
        Get the Content of the WorkOrder by GET method
        Throws:
        java.lang.Exception
      • getDocLink

        public void getDocLink()
                        throws java.lang.Exception
        Get the spi:doclinks, POST the attachment
        Throws:
        java.lang.Exception
      • checkDocContent

        public void checkDocContent()
                             throws java.lang.Exception
        Check the Document content = "hello testing"
        Throws:
        java.lang.Exception
      • checkDocList

        public void checkDocList()
                          throws java.lang.Exception
        Check if any Document in the list matches what we upload
        Throws:
        java.lang.Exception
      • checkUrlMeta

        public void checkUrlMeta()
                          throws java.lang.Exception
        Check the URL meta with dcterms:description, spi:docType, spi:urlType and oslc_cm:attachmentSize
        Throws:
        java.lang.Exception
      • deleteTheFile

        public void deleteTheFile()
                           throws java.lang.Exception
        Delete the Document and check by GET
        Throws:
        java.lang.Exception
      • deleteThePage

        public void deleteThePage()
                           throws java.lang.Exception
        Delete the workorder and check by GET
        Throws:
        java.lang.Exception