[weld-commits] Weld SVN: r6267 - core/trunk/tests/src/test/java/org/jboss/weld/tests/proxy/enterprise.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Thu May 20 17:58:59 EDT 2010


Author: pete.muir at jboss.org
Date: 2010-05-20 17:58:59 -0400 (Thu, 20 May 2010)
New Revision: 6267

Removed:
   core/trunk/tests/src/test/java/org/jboss/weld/tests/proxy/enterprise/MouseLocal.java
Modified:
   core/trunk/tests/src/test/java/org/jboss/weld/tests/proxy/enterprise/EnterpriseBeanProxyTest.java
   core/trunk/tests/src/test/java/org/jboss/weld/tests/proxy/enterprise/Mouse.java
Log:
Test should do what it says

Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/proxy/enterprise/EnterpriseBeanProxyTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/proxy/enterprise/EnterpriseBeanProxyTest.java	2010-05-20 20:11:45 UTC (rev 6266)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/proxy/enterprise/EnterpriseBeanProxyTest.java	2010-05-20 21:58:59 UTC (rev 6267)
@@ -16,8 +16,6 @@
  */
 package org.jboss.weld.tests.proxy.enterprise;
 
-import javassist.util.proxy.ProxyObject;
-
 import org.jboss.testharness.impl.packaging.Artifact;
 import org.jboss.testharness.impl.packaging.Packaging;
 import org.jboss.testharness.impl.packaging.PackagingType;
@@ -36,9 +34,9 @@
    @Test(description="WBRI-109")
    public void testNoInterfaceView() throws Exception
    {
-      Object mouse = getReference(MouseLocal.class);
+      Object mouse = getReference(Mouse.class);
       assert Utils.isProxy(mouse);
-      assert mouse instanceof MouseLocal;
+      assert mouse instanceof Mouse;
    }
    
 }

Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/proxy/enterprise/Mouse.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/proxy/enterprise/Mouse.java	2010-05-20 20:11:45 UTC (rev 6266)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/proxy/enterprise/Mouse.java	2010-05-20 21:58:59 UTC (rev 6267)
@@ -19,7 +19,7 @@
 import javax.ejb.Stateless;
 
 @Stateless
-public class Mouse implements MouseLocal
+public class Mouse
 {
    
 }

Deleted: core/trunk/tests/src/test/java/org/jboss/weld/tests/proxy/enterprise/MouseLocal.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/proxy/enterprise/MouseLocal.java	2010-05-20 20:11:45 UTC (rev 6266)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/proxy/enterprise/MouseLocal.java	2010-05-20 21:58:59 UTC (rev 6267)
@@ -1,25 +0,0 @@
-/*
- * 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
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.weld.tests.proxy.enterprise;
-
-import javax.ejb.Local;
-
- at Local
-public interface MouseLocal
-{
-   
-}



More information about the weld-commits mailing list