|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase com.atlassian.jira.functest.framework.FuncTestCase com.atlassian.jira.webtests.ztests.bundledplugins2.rest.TestAttachTemporaryFileResource
public class TestAttachTemporaryFileResource
This is just a smoke test to make sure all the pieces work together. The unit test for the resource covers all the logic and edge cases.
Field Summary | |
---|---|
static String |
JSON_TOKEN
|
Fields inherited from class com.atlassian.jira.functest.framework.FuncTestCase |
---|
administration, assertions, backdoor, environmentData, form, funcTestHelperFactory, issueTableAssertions, locator, navigation, oldway_consider_porting, page, parse, tester, text |
Constructor Summary | |
---|---|
TestAttachTemporaryFileResource()
|
Method Summary | |
---|---|
String |
getRestUrlWithToken(org.apache.commons.httpclient.HttpClient client,
Object... params)
|
protected void |
setUpTest()
Setup for an actual test |
void |
testAttachmentsDisabled()
|
void |
testAttachmentToBig()
|
void |
testBadXsrfAttach()
|
void |
testGoodRequest()
|
void |
testNoAttachPermission()
|
void |
testNoSizeRequest()
|
void |
testTooBigRequest()
|
void |
testTooSmallRequest()
|
Methods inherited from class com.atlassian.jira.functest.framework.FuncTestCase |
---|
builtInCustomFieldKey, getAssertions, getEnvironmentData, getTester, getWebClientListener, isDumpHTML, log, log, runBare, runTest, setEnvironmentData, setUp, setUpHttpUnitOptions, shouldSkipSetup, tearDown, tearDownTest, xpath |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String JSON_TOKEN
Constructor Detail |
---|
public TestAttachTemporaryFileResource()
Method Detail |
---|
protected void setUpTest()
FuncTestCase
setUpTest
in class FuncTestCase
public void testNoSizeRequest() throws Exception
Exception
public void testTooBigRequest() throws Exception
Exception
public void testTooSmallRequest() throws Exception
Exception
public void testGoodRequest() throws Exception
Exception
public void testAttachmentsDisabled() throws IOException, JSONException
IOException
JSONException
public void testNoAttachPermission() throws IOException, JSONException
IOException
JSONException
public void testAttachmentToBig() throws IOException, JSONException
IOException
JSONException
public void testBadXsrfAttach() throws IOException, JSONException
IOException
JSONException
public String getRestUrlWithToken(org.apache.commons.httpclient.HttpClient client, Object... params)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |