Author: adietish
Date: 2010-12-16 13:19:21 -0500 (Thu, 16 Dec 2010)
New Revision: 27559
Modified:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/core/client/InstanceMockIntegrationTest.java
Log:
[JBIDE-7911]
Modified:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/core/client/InstanceMockIntegrationTest.java
===================================================================
---
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/core/client/InstanceMockIntegrationTest.java 2010-12-16
18:18:39 UTC (rev 27558)
+++
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/core/client/InstanceMockIntegrationTest.java 2010-12-16
18:19:21 UTC (rev 27559)
@@ -159,7 +159,7 @@
}
@Test(expected = DeltaCloudClientException.class)
- public void destroyThrowExceptionOnUnknowInstanceId() throws DeltaCloudClientException,
IllegalArgumentException,
+ public void destroyThrowsExceptionOnUnknowInstanceId() throws DeltaCloudClientException,
IllegalArgumentException,
InstantiationException, IllegalAccessException, InvocationTargetException,
SecurityException,
NoSuchMethodException {
InternalDeltaCloudClient client = (InternalDeltaCloudClient) testSetup.getClient();
@@ -168,17 +168,9 @@
InstanceAction.DESTROY,
MockIntegrationTestContext.DELTACLOUD_URL,
HttpMethod.POST,
- createInstance()));
+ new Instance()));
}
- private Instance createInstance() throws IllegalArgumentException,
InstantiationException, IllegalAccessException,
- InvocationTargetException, SecurityException, NoSuchMethodException {
- Constructor<Instance> constructor =
- (Constructor<Instance>) Instance.class.getDeclaredConstructor((Class<?>)
null);
- constructor.setAccessible(true);
- return constructor.newInstance();
- }
-
private InstanceAction createInstanceAction(String name, String url, HttpMethod method,
Instance instance)
throws IllegalArgumentException, InstantiationException, IllegalAccessException,
InvocationTargetException,
SecurityException, NoSuchMethodException {