ResultLogger { public void setPhoneInterface(PhoneInterface phoneInterface) { if (phoneInterface == null) { throw new NullPointerException( "A valid PhoneInterface should be provided"); } this.phoneInterface = phoneInterface; } ResultLogger(String folderWhereResultsAreSaved,
			DocumentGenerator documentGenerator, String confilepath, boolean isResourceslogged);  ResultLogger(String folderWhereResultsAreSaved,
			DocumentGenerator documentGenerator, String confilepath); void generateGraphFile(); void generatepltFile(); void addInfotoActionLogger(String MsgType, String actionName, Date startTime,
			Date endTime); void writeActionLogFile(); void writeActionLogFile(String xmlfilepath); void addInfoToDocumentLogger(String s, int line, String currentScript); void addWarningToDocumentLogger(String s, int line, String currentScript); void addErrorToDocumentLogger(String s, int line, String currentScript); void addToDocumentLogger(float value, String doctype); void addResourcesInfoToDocumentLogger(); void addPerfListener(IMeasureListener listener); void removePerfListener(IMeasureListener listener); IMeasureListener[] getPerfListeners(); boolean saveScreenshot(String fileName, RenderedImage image); void setPhoneInterface(PhoneInterface phoneInterface); void setInterpreter(JATKInterpreter interpreter); void start(int iInterval); void interrupt(); void join(); boolean isAlive(); void dumpInStream(boolean isParseErrorHappened); PhoneInterface getPhoneInterface(); void setStopATK(boolean stopATK); boolean isStopATK(); DocumentLogger getDocumentLogger(); void setDocumentLogger(DocumentLogger documentLogger); ActionsLogger getActionsLogger();  }
@Test(expected = NullPointerException.class) public void testSetPhoneInterfaceWithNullParam() throws FileNotFoundException { ResultLogger l = new ResultLogger(Platform.TMP_DIR, new TextGenerator(new FileOutputStream(new File( Platform.TMP_DIR + Platform.FILE_SEPARATOR + "tmp.txt"))),"C:\\Program Files\\JATK\\Salome-script\\Confile.xml"); l.setPhoneInterface(null); }