package io.trygvis.container.compiler.model; import org.testng.Assert; import org.testng.annotations.Test; import static org.testng.Assert.assertEquals; public class TypeRefTest { @Test public void testBasic() { TypeRef foo = new TypeRef("wat.Foo"); TypeRef string = new TypeRef(String.class); TypeRef bar = new TypeRef("wat.Bar").args(string); TypeRef baz = new TypeRef("woot.Baz").args(bar); assertEquals(foo.toString(), "wat.Foo"); assertEquals(bar.toString(), "wat.Bar"); assertEquals(baz.toString(), "woot.Baz>"); } }