package org.cipres.kepler.testcase; import org.cipres.util.CipresFile; public class TestNexusFileReaderActor { // the cipres file in the NexusFileReaderActor private CipresFile cf = null; // set the file name for the cipres file public void setNexusFileName(String fileName) { cf = new CipresFile(fileName); } // test the output port of file name public String getNexusFileName() { return cf.getAbsolutePath(); } // test the output port of file content public String getNexusFileContent() { try { return cf.getContent(); } catch (Exception ex) { ex.printStackTrace(); if (cf != null) cf = null; } return null; } }