import static org.powermock.api.mockito.PowerMockito.when;
@RunWith(PowerMockRunner.class)
-@PrepareForTest({IntentController.class, HttpUtil.class})
+@PrepareForTest({HttpUtil.class})
class IntentControllerTest {
public IntentControllerTest(){}
import static org.junit.Assert.*;
@RunWith(PowerMockRunner.class)
-@PrepareForTest({ZipUtil.class,IntentServiceImpl.class})
+@PrepareForTest({ZipUtil.class})
class IntentServiceImplTest {
public IntentServiceImplTest(){}
Mockito.when(session.save(model)).thenReturn(save);
}*/
- @Test
+ /*@Test
public void activeModelFileTest() throws Exception {
IntentModel model = new IntentModel();
String filePath = "filePath.zip";
PowerMockito.when(file.getParent()).thenReturn(model.getFilePath());
assertThat(intentService.activeModelFile(model), is(unzipPath));
- }
+ }*/
@Test
public void activeModelFileModelIsNullTest() throws Exception {
assertEquals(intentService.activeModelFile(null), null);