@Test public void testGetCompileOutputFileName() throws IOException { String outputFileName1 = Neow3jPluginUtils .getCompileOutputFileName("io.neow3j.blah.Test"); assertThat(outputFileName1, is("Test.nef")); String outputFileName2 = Neow3jPluginUtils .getCompileOutputFileName("io.neow3j.blah."); assertThat(outputFileName2, is(Neow3jPluginUtils.DEFAULT_FILENAME)); String outputFileName3 = Neow3jPluginUtils .getCompileOutputFileName(""); assertThat(outputFileName3, is(Neow3jPluginUtils.DEFAULT_FILENAME)); String outputFileName4 = Neow3jPluginUtils .getCompileOutputFileName(null); assertThat(outputFileName4, is(Neow3jPluginUtils.DEFAULT_FILENAME)); }
static String getCompileOutputFileName(String fqClassName) { String className = getClassName(fqClassName); if (className != null && className.length() > 0) { return className + SUFFIX_FILENAME; } return DEFAULT_FILENAME; }
Neow3jPluginUtils { static String getCompileOutputFileName(String fqClassName) { String className = getClassName(fqClassName); if (className != null && className.length() > 0) { return className + SUFFIX_FILENAME; } return DEFAULT_FILENAME; } }
Neow3jPluginUtils { static String getCompileOutputFileName(String fqClassName) { String className = getClassName(fqClassName); if (className != null && className.length() > 0) { return className + SUFFIX_FILENAME; } return DEFAULT_FILENAME; }  }
Neow3jPluginUtils { static String getCompileOutputFileName(String fqClassName) { String className = getClassName(fqClassName); if (className != null && className.length() > 0) { return className + SUFFIX_FILENAME; } return DEFAULT_FILENAME; }   }
Neow3jPluginUtils { static String getCompileOutputFileName(String fqClassName) { String className = getClassName(fqClassName); if (className != null && className.length() > 0) { return className + SUFFIX_FILENAME; } return DEFAULT_FILENAME; }    }