use of org.apache.flink.runtime.util.jartestprogram.WordCountWithExternalClass2 in project flink by apache.
the class JarFileCreatorTest method TestExtendIdentifier.
@Test
public void TestExtendIdentifier() throws IOException {
File out = new File(System.getProperty("java.io.tmpdir"), "jarcreatortest.jar");
JarFileCreator jfc = new JarFileCreator(out);
jfc.addClass(WordCountWithExternalClass2.class).createJarFile();
Set<String> ans = new HashSet<String>();
ans.add("org/apache/flink/runtime/util/jartestprogram/StaticData.class");
ans.add("org/apache/flink/runtime/util/jartestprogram/WordCountWithExternalClass2.class");
ans.add("org/apache/flink/runtime/util/jartestprogram/ExternalTokenizer2.class");
ans.add("org/apache/flink/runtime/util/jartestprogram/ExternalTokenizer.class");
Assert.assertTrue("Jar file for Extend Identifier is not correct", validate(ans, out));
out.delete();
}
Aggregations