deltaspike git commit: DELTASPIKE-1319 additional tests for labeled alternatives
Repository: deltaspike Updated Branches: refs/heads/deltaspike-1.8.x a360578bd -> 8a131ed14 DELTASPIKE-1319 additional tests for labeled alternatives Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/8a131ed1 Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/8a131ed1 Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/8a131ed1 Branch: refs/heads/deltaspike-1.8.x Commit: 8a131ed14c3c51da13d1fce56892e2c1edfe8053 Parents: a360578 Author: gpetracekAuthored: Mon Apr 16 21:27:15 2018 +0200 Committer: gpetracek Committed: Mon Apr 16 22:26:32 2018 +0200 -- .../testcontrol/uc017/DefaultServiceTest.java | 44 + .../uc017/DefaultTestServiceProducer.java | 40 .../testcontrol/uc017/LabeledServiceTest.java | 50 .../uc017/LabeledTestServiceProducer.java | 41 .../test/testcontrol/uc017/TestService.java | 24 ++ .../testcontrol/uc018/DefaultServiceTest.java | 44 + .../uc018/DefaultTestServiceProducer.java | 38 +++ .../uc018/InterceptedDefaultTestService.java| 35 ++ .../uc018/InterceptedLabeledTestService.java| 35 ++ .../uc018/InterceptedTestService.java | 24 ++ .../uc018/InterceptedTestServiceProducer.java | 24 ++ .../testcontrol/uc018/LabeledServiceTest.java | 50 .../uc018/LabeledTestServiceProducer.java | 40 .../testcontrol/uc018/TestServiceQualifier.java | 38 +++ .../uc018/TestUpperCaseInterceptor.java | 31 .../TestUpperCaseInterceptorImplementation.java | 41 .../META-INF/apache-deltaspike.properties | 3 ++ .../impl/src/test/resources/META-INF/beans.xml | 1 + 18 files changed, 603 insertions(+) -- http://git-wip-us.apache.org/repos/asf/deltaspike/blob/8a131ed1/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultServiceTest.java -- diff --git a/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultServiceTest.java b/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultServiceTest.java new file mode 100644 index 000..9fa7a40 --- /dev/null +++ b/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultServiceTest.java @@ -0,0 +1,44 @@ +/* + * 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.deltaspike.test.testcontrol.uc017; + +import org.apache.deltaspike.test.category.SeCategory; +import org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner; +import org.junit.Assert; +import org.junit.Test; +import org.junit.experimental.categories.Category; +import org.junit.runner.RunWith; + +import javax.inject.Inject; + +//Usually NOT needed! Currently only needed due to our arquillian-setup +@Category(SeCategory.class) + +@RunWith(CdiTestRunner.class) +public class DefaultServiceTest +{ +@Inject +private TestService testService; + +@Test +public void defaultValue() +{ +Assert.assertEquals("default-result", testService.getValue()); +} +} http://git-wip-us.apache.org/repos/asf/deltaspike/blob/8a131ed1/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultTestServiceProducer.java -- diff --git a/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultTestServiceProducer.java b/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultTestServiceProducer.java new file mode 100644 index 000..ce3be60 --- /dev/null +++
deltaspike git commit: DELTASPIKE-1319 additional tests for labeled alternatives
Repository: deltaspike Updated Branches: refs/heads/master 20d4741de -> 463a8c9b8 DELTASPIKE-1319 additional tests for labeled alternatives Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/463a8c9b Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/463a8c9b Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/463a8c9b Branch: refs/heads/master Commit: 463a8c9b81f4ce3a1c64565748e25f72eeba7988 Parents: 20d4741 Author: gpetracekAuthored: Mon Apr 16 21:27:15 2018 +0200 Committer: gpetracek Committed: Mon Apr 16 22:13:16 2018 +0200 -- .../testcontrol/uc017/DefaultServiceTest.java | 44 + .../uc017/DefaultTestServiceProducer.java | 40 .../testcontrol/uc017/LabeledServiceTest.java | 50 .../uc017/LabeledTestServiceProducer.java | 41 .../test/testcontrol/uc017/TestService.java | 24 ++ .../testcontrol/uc018/DefaultServiceTest.java | 44 + .../uc018/DefaultTestServiceProducer.java | 38 +++ .../uc018/InterceptedDefaultTestService.java| 35 ++ .../uc018/InterceptedLabeledTestService.java| 35 ++ .../uc018/InterceptedTestService.java | 24 ++ .../uc018/InterceptedTestServiceProducer.java | 24 ++ .../testcontrol/uc018/LabeledServiceTest.java | 50 .../uc018/LabeledTestServiceProducer.java | 40 .../testcontrol/uc018/TestServiceQualifier.java | 38 +++ .../uc018/TestUpperCaseInterceptor.java | 31 .../TestUpperCaseInterceptorImplementation.java | 41 .../META-INF/apache-deltaspike.properties | 3 ++ .../impl/src/test/resources/META-INF/beans.xml | 1 + 18 files changed, 603 insertions(+) -- http://git-wip-us.apache.org/repos/asf/deltaspike/blob/463a8c9b/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultServiceTest.java -- diff --git a/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultServiceTest.java b/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultServiceTest.java new file mode 100644 index 000..9fa7a40 --- /dev/null +++ b/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultServiceTest.java @@ -0,0 +1,44 @@ +/* + * 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.deltaspike.test.testcontrol.uc017; + +import org.apache.deltaspike.test.category.SeCategory; +import org.apache.deltaspike.testcontrol.api.junit.CdiTestRunner; +import org.junit.Assert; +import org.junit.Test; +import org.junit.experimental.categories.Category; +import org.junit.runner.RunWith; + +import javax.inject.Inject; + +//Usually NOT needed! Currently only needed due to our arquillian-setup +@Category(SeCategory.class) + +@RunWith(CdiTestRunner.class) +public class DefaultServiceTest +{ +@Inject +private TestService testService; + +@Test +public void defaultValue() +{ +Assert.assertEquals("default-result", testService.getValue()); +} +} http://git-wip-us.apache.org/repos/asf/deltaspike/blob/463a8c9b/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultTestServiceProducer.java -- diff --git a/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultTestServiceProducer.java b/deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc017/DefaultTestServiceProducer.java new file mode 100644 index 000..ce3be60 --- /dev/null +++