Search in sources :

Example 1 with WordCountWithExternalClass2

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();
}
Also used : File(java.io.File) WordCountWithExternalClass2(org.apache.flink.runtime.util.jartestprogram.WordCountWithExternalClass2) HashSet(java.util.HashSet) Test(org.junit.Test)

Aggregations

File (java.io.File)1 HashSet (java.util.HashSet)1 WordCountWithExternalClass2 (org.apache.flink.runtime.util.jartestprogram.WordCountWithExternalClass2)1 Test (org.junit.Test)1