You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2015/04/15 12:26:14 UTC
tomee git commit: TOMEE-1547 fixing test
Repository: tomee
Updated Branches:
refs/heads/tomee-1.7.x f85e65d12 -> a552172bb
TOMEE-1547 fixing test
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/a552172b
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/a552172b
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/a552172b
Branch: refs/heads/tomee-1.7.x
Commit: a552172bbc611bd316a0b92710b941125a447d62
Parents: f85e65d
Author: Jonathan Gallimore <jo...@jrg.me.uk>
Authored: Wed Apr 15 11:25:59 2015 +0100
Committer: Jonathan Gallimore <jo...@jrg.me.uk>
Committed: Wed Apr 15 11:25:59 2015 +0100
----------------------------------------------------------------------
.../openejb/config/ReadDescriptorsTest.java | 20 --------------------
examples/pom.xml | 1 +
2 files changed, 1 insertion(+), 20 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tomee/blob/a552172b/container/openejb-core/src/test/java/org/apache/openejb/config/ReadDescriptorsTest.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/test/java/org/apache/openejb/config/ReadDescriptorsTest.java b/container/openejb-core/src/test/java/org/apache/openejb/config/ReadDescriptorsTest.java
index 7413109..c8d029d 100644
--- a/container/openejb-core/src/test/java/org/apache/openejb/config/ReadDescriptorsTest.java
+++ b/container/openejb-core/src/test/java/org/apache/openejb/config/ReadDescriptorsTest.java
@@ -42,29 +42,10 @@ public class ReadDescriptorsTest {
}
@Test
- public void testTypeNotAvailable() {
-
- final Resource resource = new Resource();
- resource.setClassName("org.apache.openejb.config.ReadDescriptorsTest");
- resource.setType("not.a.real.Class");
-
- final Resources resources = new Resources();
- resources.add(resource);
-
- final Resources checkedResources = ReadDescriptors.check(resources);
- final Resource res = checkedResources.getResource().get(0);
-
- Assert.assertEquals("true", res.getProperties().getProperty("Lazy"));
- Assert.assertEquals("true", res.getProperties().getProperty("UseAppClassLoader"));
- Assert.assertEquals("true", res.getProperties().getProperty("InitializeAfterDeployment"));
- }
-
- @Test
public void testClassAndTypeAvailable() {
final Resource resource = new Resource();
resource.setClassName("org.apache.openejb.config.ReadDescriptorsTest");
- resource.setType("org.apache.openejb.config.ReadDescriptorsTest");
final Resources resources = new Resources();
resources.add(resource);
@@ -98,7 +79,6 @@ public class ReadDescriptorsTest {
public void testLazyResource() {
final Resource resource = new Resource();
resource.setClassName("not.a.real.Class");
- resource.setType("not.a.real.Class");
resource.getProperties().setProperty("Lazy", "true");
final Resources resources = new Resources();
http://git-wip-us.apache.org/repos/asf/tomee/blob/a552172b/examples/pom.xml
----------------------------------------------------------------------
diff --git a/examples/pom.xml b/examples/pom.xml
index 4ae1977..0a9d548 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -158,6 +158,7 @@
<module>moviefun</module>
<module>moviefun-rest</module>
<module>cdi-event-realm</module>
+ <module>resources-jmx-example</module>
</modules>
<dependencies>