public class TestOSLCAttachment
extends java.lang.Object
| Constructor and Description |
|---|
TestOSLCAttachment() |
| 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() |
public void testObjectStructure()
throws java.lang.Exception
java.lang.Exceptionpublic void setAuth(java.lang.String user,
java.lang.String pwd,
java.net.HttpURLConnection con)
public void createBasicWO()
throws java.lang.Exception
java.lang.Exceptionpublic void getDocPage()
throws java.lang.Exception
java.lang.Exceptionpublic void getDocLink()
throws java.lang.Exception
java.lang.Exceptionpublic void checkDocContent()
throws java.lang.Exception
java.lang.Exceptionpublic void checkDocList()
throws java.lang.Exception
java.lang.Exceptionpublic void checkUrlMeta()
throws java.lang.Exception
java.lang.Exceptionpublic void deleteTheFile()
throws java.lang.Exception
java.lang.Exceptionpublic void deleteThePage()
throws java.lang.Exception
java.lang.Exception