@Test public void testPut() throws SardineException { Sardine sardineMock = mock(Sardine.class); String putUrlMock = "putUrlMock"; byte[] dataMock = { 116, 101, 115, 116 }; doNothing().when(sardineMock).put(putUrlMock, dataMock); FactModelGuvnorUploader.put(sardineMock, putUrlMock, dataMock); }
static void put(Sardine sardine, String putUrl, byte[] data) { try { sardine.put(putUrl, data); } catch (SardineException e) { LOGGER.error("ERROR: File couldn't be put."); LOGGER.error(e.getMessage(), e); } }
FactModelGuvnorUploader { static void put(Sardine sardine, String putUrl, byte[] data) { try { sardine.put(putUrl, data); } catch (SardineException e) { LOGGER.error("ERROR: File couldn't be put."); LOGGER.error(e.getMessage(), e); } } }
FactModelGuvnorUploader { static void put(Sardine sardine, String putUrl, byte[] data) { try { sardine.put(putUrl, data); } catch (SardineException e) { LOGGER.error("ERROR: File couldn't be put."); LOGGER.error(e.getMessage(), e); } }  }
FactModelGuvnorUploader { static void put(Sardine sardine, String putUrl, byte[] data) { try { sardine.put(putUrl, data); } catch (SardineException e) { LOGGER.error("ERROR: File couldn't be put."); LOGGER.error(e.getMessage(), e); } }  static void main(String[] args); }
FactModelGuvnorUploader { static void put(Sardine sardine, String putUrl, byte[] data) { try { sardine.put(putUrl, data); } catch (SardineException e) { LOGGER.error("ERROR: File couldn't be put."); LOGGER.error(e.getMessage(), e); } }  static void main(String[] args);  }