diff --git a/querydsl-core/src/test/java/com/mysema/query/types/path/BeanPathTest.java b/querydsl-core/src/test/java/com/mysema/query/types/path/BeanPathTest.java index f439afb72..2c87e800c 100644 --- a/querydsl-core/src/test/java/com/mysema/query/types/path/BeanPathTest.java +++ b/querydsl-core/src/test/java/com/mysema/query/types/path/BeanPathTest.java @@ -5,17 +5,32 @@ import static org.junit.Assert.assertNotNull; import org.junit.Test; import com.mysema.query.annotations.PropertyType; +import com.mysema.query.types.PathMetadata; public class BeanPathTest { + public static class MyBeanPath extends BeanPath{ + + public MyBeanPath(PathMetadata metadata) { + super(Object.class, metadata); + } + + } + private BeanPath beanPath = new BeanPath(BeanPathTest.class, "p"); @Test - public void As(){ + public void As_Path(){ SimplePath simplePath = new SimplePath(BeanPathTest.class, "p"); assertNotNull(beanPath.as(simplePath)); } +// @Test +// public void As_Class(){ +// MyBeanPath otherPath = beanPath.as(MyBeanPath.class); +// assertEquals(beanPath, otherPath); +// } + @Test public void CreateEnum(){ assertNotNull(beanPath.createEnum("property", PropertyType.class));