Issue-ID: POLICY-600
Change-Id: I9d4d986b0703c67f65b67eedabca8d0d56965f2d
Signed-off-by: bobbymander <bobby.mander@att.com>
import java.util.Collections;
@RunWith(PowerMockRunner.class)
import java.util.Collections;
@RunWith(PowerMockRunner.class)
-@PrepareForTest({MicroServiceConfigPolicy.class, CreateNewMicroServiceModel.class})
public class MicroServicePolicyTest {
@Rule
public ExpectedException thrown = ExpectedException.none();
public class MicroServicePolicyTest {
@Rule
public ExpectedException thrown = ExpectedException.none();
assertNull(policy.getCorrectPolicyDataObject());
}
assertNull(policy.getCorrectPolicyDataObject());
}
+ @PrepareForTest({MicroServiceConfigPolicy.class})
@Test
public void testPrepareToSave() throws Exception {
// Need to mock internal dictionary retrieval
@Test
public void testPrepareToSave() throws Exception {
// Need to mock internal dictionary retrieval
+ @PrepareForTest({CreateNewMicroServiceModel.class})
@Test
public void testCreateModel() throws Exception {
// Mock file retrieval
@Test
public void testCreateModel() throws Exception {
// Mock file retrieval
import javax.persistence.EntityManager;
@RunWith(PowerMockRunner.class)
import javax.persistence.EntityManager;
@RunWith(PowerMockRunner.class)
-@PrepareForTest({DeleteHandler.class, XACMLPapServlet.class})
public class DeleteHandlerTest {
@Test
public void testGets() {
public class DeleteHandlerTest {
@Test
public void testGets() {
assertNotNull(handler);
}
assertNotNull(handler);
}
+ @PrepareForTest({DeleteHandler.class, XACMLPapServlet.class})
@Test
public void testDeletes() throws Exception {
// Mock request
@Test
public void testDeletes() throws Exception {
// Mock request