Exemplo n.º 1
0
 @Test
 public void submitReturnsBadOutputWhenCodeIsBad() throws Exception {
   PowerMockito.when(ClientData.userDataExists()).thenReturn(true);
   paste.setParameter("path", "/hieno/path");
   String result = paste.parseData(paste.call()).get();
   assertTrue(result.contains(pasteUrl));
 }
Exemplo n.º 2
0
 /** Check that data checking success. */
 @Test
 public void testCheckDataSuccess() throws ProtocolException, IOException {
   PowerMockito.when(ClientData.userDataExists()).thenReturn(true);
   paste.setParameter("path", "/home/tmccli/uolevipuistossa");
   paste.checkData();
 }