openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1601003 - in /openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/injection/generics: BazEnum.java GenericsTest.java
Date Fri, 06 Jun 2014 20:35:25 GMT
Author: struberg
Date: Fri Jun  6 20:35:25 2014
New Revision: 1601003

URL: http://svn.apache.org/r1601003
Log:
OWB-968 add test to make sure all is fine in owb-1.2.x

Added:
    openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/injection/generics/BazEnum.java
Modified:
    openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/injection/generics/GenericsTest.java

Added: openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/injection/generics/BazEnum.java
URL: http://svn.apache.org/viewvc/openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/injection/generics/BazEnum.java?rev=1601003&view=auto
==============================================================================
--- openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/injection/generics/BazEnum.java
(added)
+++ openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/injection/generics/BazEnum.java
Fri Jun  6 20:35:25 2014
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.webbeans.newtests.injection.generics;
+
+/**
+ * Scanning enums did blow up our GenericsUtil with an infinite loop...
+ */
+public enum BazEnum
+{
+    YES, NO;
+}

Modified: openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/injection/generics/GenericsTest.java
URL: http://svn.apache.org/viewvc/openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/injection/generics/GenericsTest.java?rev=1601003&r1=1601002&r2=1601003&view=diff
==============================================================================
--- openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/injection/generics/GenericsTest.java
(original)
+++ openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/injection/generics/GenericsTest.java
Fri Jun  6 20:35:25 2014
@@ -116,4 +116,9 @@ public class GenericsTest extends Abstra
         assertNotNull(foo.getABazEvent());
         assertEquals((String) foo.getAObserverInjectionPoint(), "a produced String");
     }
+
+    @Test
+    public void testEnum() throws Exception{
+        startContainer(BazEnum.class);
+    }
 }



Mime
View raw message