@SuppressWarnings("static-access") @Test public void initialiseTest() throws Exception{ mockStatic(FileGenerator.class); PowerMockito.doNothing().when(FileGenerator.class,"writeToFile",anyString(),anyString(),anyBoolean()); errorManageUtil.initialise(); PowerMockito.doThrow(new IOException()).when(FileGenerator.class,"writeToFile",anyString(),anyString(),anyBoolean()); errorManageUtil.initialise(); }
public static void initialise(){ try { FileGenerator.writeToFile("aws-loaderror.data",InventoryConstants.OPEN_ARRAY, false); } catch (IOException e) { log.error("Error in Initialise",e); } }
ErrorManageUtil { public static void initialise(){ try { FileGenerator.writeToFile("aws-loaderror.data",InventoryConstants.OPEN_ARRAY, false); } catch (IOException e) { log.error("Error in Initialise",e); } } }
ErrorManageUtil { public static void initialise(){ try { FileGenerator.writeToFile("aws-loaderror.data",InventoryConstants.OPEN_ARRAY, false); } catch (IOException e) { log.error("Error in Initialise",e); } } private  ErrorManageUtil(); }
ErrorManageUtil { public static void initialise(){ try { FileGenerator.writeToFile("aws-loaderror.data",InventoryConstants.OPEN_ARRAY, false); } catch (IOException e) { log.error("Error in Initialise",e); } } private  ErrorManageUtil(); static void initialise(); static void finalise(); static synchronized void uploadError(String account, String region, String type, String exception); static void writeErrorFile(); static Map<String,Object> formErrorCode(); }
ErrorManageUtil { public static void initialise(){ try { FileGenerator.writeToFile("aws-loaderror.data",InventoryConstants.OPEN_ARRAY, false); } catch (IOException e) { log.error("Error in Initialise",e); } } private  ErrorManageUtil(); static void initialise(); static void finalise(); static synchronized void uploadError(String account, String region, String type, String exception); static void writeErrorFile(); static Map<String,Object> formErrorCode();  }