@Test public void testImplicitPackage() { Descriptor descriptor = Flapi.builder() .setPackage("some.thing") .setDescriptorName("Something") .addMethod("method(Map variable)") .last() .build(); descriptor.writeToFolder(getTemporaryFolder()); testCompile(); }
@Test public void testArrayType() { Descriptor descriptor = Flapi.builder() .setPackage("some.thing") .setDescriptorName("Something") .addMethod("method(byte[] variable)") .last() .build(); descriptor.writeToFolder(getTemporaryFolder()); addTestClassMethod( "Test", "some.thing.Something.SomethingGenerator.create(null)" + " .method(new byte[]{'a', 'b'})" + ";"); testCompile(); }