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.Exception
public void setAuth(java.lang.String user, java.lang.String pwd, java.net.HttpURLConnection con)
public void createBasicWO() throws java.lang.Exception
java.lang.Exception
public void getDocPage() throws java.lang.Exception
java.lang.Exception
public void getDocLink() throws java.lang.Exception
java.lang.Exception
public void checkDocContent() throws java.lang.Exception
java.lang.Exception
public void checkDocList() throws java.lang.Exception
java.lang.Exception
public void checkUrlMeta() throws java.lang.Exception
java.lang.Exception
public void deleteTheFile() throws java.lang.Exception
java.lang.Exception
public void deleteThePage() throws java.lang.Exception
java.lang.Exception