@@ -0,0 +1,857 @@
+package me.nallar.javatransformer.api;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.TemporaryFolder;%0Aimport org.omg.CORBA.BooleanHolder;%0A%0Aimport java.nio.file.*;%0A%0Apublic class JavaTransformerTest %7B%0A%09@Rule%0A%09public TemporaryFolder folder = new TemporaryFolder();%0A%0A%09@Test%0A%09public void testTransform() throws Exception %7B%0A%09%09Path output = folder.newFolder(%22output%22).toPath();%0A%0A%09%09JavaTransformer transformer = new JavaTransformer();%0A%0A%09%09BooleanHolder holder = new BooleanHolder(false);%0A%0A%09%09transformer.addTransformer(c -%3E %7B%0A%09%09%09if (c.getName().equals(JavaTransformerTest.this.getClass().getName())) %7B%0A%09%09%09%09holder.value = true;%0A%09%09%09%7D%0A%09%09%7D);%0A%0A%09%09transformer.transform(JavaTransformer.pathFromClass(this.getClass()), output);%0A%0A%09%09Assert.assertTrue(%22Transformer must process %22 + this.getClass().getName(), holder.value);%0A%09%7D%0A%7D%0A

Add JavaTransformerTest