From 43cd6f0f45e2e33973f886b0764590b0a3527cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Westk=C3=A4mper?= Date: Wed, 13 Oct 2010 13:36:26 +0000 Subject: [PATCH] --- .../mysema/query/types/path/BeanPathTest.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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));