Author: pete.muir(a)jboss.org
Date: 2010-02-01 09:28:02 -0500 (Mon, 01 Feb 2010)
New Revision: 5696
Added:
core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/Castle.java
Modified:
core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/EnterpriseBeanTest.java
Log:
add a simple test for no interface views
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/Castle.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/Castle.java
(rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/Castle.java 2010-02-01
14:28:02 UTC (rev 5696)
@@ -0,0 +1,21 @@
+package org.jboss.weld.tests.enterprise;
+
+import javax.ejb.Stateful;
+
+@Stateful
+public class Castle
+{
+
+ private boolean pinged;
+
+ public boolean isPinged()
+ {
+ return pinged;
+ }
+
+ public void ping()
+ {
+ this.pinged = true;
+ }
+
+}
Property changes on:
core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/Castle.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Modified:
core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/EnterpriseBeanTest.java
===================================================================
---
core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/EnterpriseBeanTest.java 2010-02-01
12:58:17 UTC (rev 5695)
+++
core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/EnterpriseBeanTest.java 2010-02-01
14:28:02 UTC (rev 5696)
@@ -1,4 +1,5 @@
/*
+
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
@@ -22,6 +23,7 @@
import org.jboss.testharness.impl.packaging.IntegrationTest;
import org.jboss.testharness.impl.packaging.Packaging;
import org.jboss.testharness.impl.packaging.PackagingType;
+import org.jboss.weld.bean.SessionBean;
import org.jboss.weld.test.AbstractWeldTest;
import org.jboss.weld.test.Utils;
import org.testng.annotations.Test;
@@ -95,4 +97,13 @@
assert action.getGoodBye().equals("goodbye");
}
+ @Test(description = "Simple test for no-interface views",
groups="broken")
+ public void testNoInterfaceView()
+ {
+ Castle castle = getReference(Castle.class);
+ castle.ping();
+ assert castle.isPinged();
+ assert getBean(Castle.class) instanceof SessionBean<?>;
+ }
+
}
Show replies by date