isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danhayw...@apache.org
Subject svn commit: r1300890 [5/5] - in /incubator/isis/trunk/framework: ./ core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/objecttype/ core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/ core/webapp/src/main/java/org/...
Date Thu, 15 Mar 2012 10:37:49 GMT
Added: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/GivenJpaOneToOneAnnotationFacetFactoryTest.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/GivenJpaOneToOneAnnotationFacetFactoryTest.java?rev=1300890&view=auto
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/GivenJpaOneToOneAnnotationFacetFactoryTest.java
(added)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/GivenJpaOneToOneAnnotationFacetFactoryTest.java
Thu Mar 15 10:37:43 2012
@@ -0,0 +1,191 @@
+package org.apache.isis.extensions.jpa.metamodel.facets.prop.onetoone.onetoone;
+
+import java.lang.reflect.Method;
+import java.util.List;
+
+import javax.persistence.FetchType;
+
+import junit.framework.Assert;
+
+import org.apache.isis.core.metamodel.facetapi.Facet;
+import org.apache.isis.core.metamodel.facetapi.FeatureType;
+import org.apache.isis.core.metamodel.facets.FacetFactory;
+import org.apache.isis.core.metamodel.facets.mandatory.MandatoryFacet;
+import org.apache.isis.core.progmodel.facets.AbstractFacetFactoryTest;
+import org.apache.isis.extensions.jpa.metamodel.facets.JpaFetchTypeFacet;
+import org.apache.isis.extensions.jpa.metamodel.facets.prop.onetoone.JpaFetchTypeFacetDerivedFromJpaOneToOneAnnotation;
+import org.apache.isis.extensions.jpa.metamodel.facets.prop.onetoone.JpaOneToOneAnnotationFacetFactory;
+import org.apache.isis.extensions.jpa.metamodel.facets.prop.onetoone.JpaOneToOneFacet;
+import org.apache.isis.extensions.jpa.metamodel.facets.prop.onetoone.JpaOneToOneFacetAnnotation;
+import org.apache.isis.extensions.jpa.metamodel.facets.prop.onetoone.MandatoryFacetDerivedFromJpaOneToOneAnnotation;
+import org.apache.isis.extensions.jpa.metamodel.facets.prop.onetoone.OptionalFacetDerivedFromJpaOneToOneAnnotation;
+
+public class GivenJpaOneToOneAnnotationFacetFactoryTest extends AbstractFacetFactoryTest
{
+
+    private JpaOneToOneAnnotationFacetFactory facetFactory;
+
+    @Override
+    protected void setUp() throws Exception {
+        super.setUp();
+
+        facetFactory = new JpaOneToOneAnnotationFacetFactory();
+    }
+
+    @Override
+    protected void tearDown() throws Exception {
+        facetFactory = null;
+        super.tearDown();
+    }
+
+    public void testFeatureTypes() {
+        final List<FeatureType> featureTypes = facetFactory.getFeatureTypes();
+        Assert.assertFalse(contains(featureTypes, FeatureType.OBJECT));
+        assertTrue(contains(featureTypes, FeatureType.PROPERTY));
+        assertFalse(contains(featureTypes, FeatureType.COLLECTION));
+        Assert.assertFalse(contains(featureTypes, FeatureType.ACTION));
+        assertFalse(contains(featureTypes, FeatureType.ACTION_PARAMETER));
+    }
+
+    public void testColumnAnnotationPickedUpOnProperty() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithOneToOneAnnotation.class;
+        final Method method = cls.getMethod("getOther");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final Facet facet = facetedMethod.getFacet(JpaOneToOneFacet.class);
+        assertNotNull(facet);
+        assertTrue(facet instanceof JpaOneToOneFacetAnnotation);
+    }
+
+    public void testMandatoryFacetDerivedForProperty() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithOneToOneAnnotation.class;
+        final Method method = cls.getMethod("getOther");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final MandatoryFacet facet = facetedMethod.getFacet(MandatoryFacet.class);
+        assertNotNull(facet);
+    }
+
+    public void testOptionalAttributeExplicitlySpecifiedAsFalse() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithOneToOneOptionalFalse.class;
+        final Method method = cls.getMethod("getOther");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final MandatoryFacet facet = facetedMethod.getFacet(MandatoryFacet.class);
+        assertNotNull(facet);
+        Assert.assertTrue(facet instanceof MandatoryFacetDerivedFromJpaOneToOneAnnotation);
+        assertFalse(facet.isInvertedSemantics());
+    }
+
+    public void testOptionalAttributeExplicitlySpecifiedAsTrue() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithOneToOneOptionalTrue.class;
+        final Method method = cls.getMethod("getOther");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final MandatoryFacet facet = facetedMethod.getFacet(MandatoryFacet.class);
+        assertNotNull(facet);
+        Assert.assertTrue(facet instanceof OptionalFacetDerivedFromJpaOneToOneAnnotation);
+        assertTrue(facet.isInvertedSemantics());
+    }
+
+    public void testOptionalAttributeNotSpecified() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithOneToOneAnnotation.class;
+        final Method method = cls.getMethod("getOther");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final MandatoryFacet facet = facetedMethod.getFacet(MandatoryFacet.class);
+        assertNotNull(facet);
+        Assert.assertTrue(facet instanceof OptionalFacetDerivedFromJpaOneToOneAnnotation);
+        assertTrue(facet.isInvertedSemantics());
+    }
+
+    public void testJpaFetchTypeFacetDerivedForProperty() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithOneToOneAnnotation.class;
+        final Method method = cls.getMethod("getOther");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final JpaFetchTypeFacet facet = facetedMethod.getFacet(JpaFetchTypeFacet.class);
+        assertNotNull(facet);
+        Assert.assertTrue(facet instanceof JpaFetchTypeFacetDerivedFromJpaOneToOneAnnotation);
+    }
+
+    public void testFetchTypeAttributeExplicitlySpecifiedAsLazy() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithOneToOneFetchLazy.class;
+        final Method method = cls.getMethod("getOther");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final JpaFetchTypeFacet facet = facetedMethod.getFacet(JpaFetchTypeFacet.class);
+        assertNotNull(facet);
+        assertEquals(FetchType.LAZY, facet.getFetchType());
+    }
+
+    public void testFetchTypeAttributeExplicitlySpecifiedAsEager() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithOneToOneFetchEager.class;
+        final Method method = cls.getMethod("getOther");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final JpaFetchTypeFacet facet = facetedMethod.getFacet(JpaFetchTypeFacet.class);
+        assertNotNull(facet);
+        assertEquals(FetchType.EAGER, facet.getFetchType());
+    }
+
+    public void testFetchTypeAttributeNotSpecified() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithOneToOneAnnotation.class;
+        final Method method = cls.getMethod("getOther");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final JpaFetchTypeFacet facet = facetedMethod.getFacet(JpaFetchTypeFacet.class);
+        assertNotNull(facet);
+        assertEquals(FetchType.EAGER, facet.getFetchType());
+    }
+
+    public void testIfNoOneToOneColumnAnnotationThenNoOneToOneColumnFacet() throws Exception
{
+
+        final Class<?> cls = SimpleObjectWithNoOneToOneAnnotation.class;
+        final Method method = cls.getMethod("getOther");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final Facet facet = facetedMethod.getFacet(JpaOneToOneFacet.class);
+        assertNull(facet);
+    }
+
+    public void testIfNoOneToOneAnnotationThenNoMandatoryFacet() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithNoOneToOneAnnotation.class;
+        final Method method = cls.getMethod("getOther");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final Facet facet = facetedMethod.getFacet(MandatoryFacet.class);
+        assertNull(facet);
+    }
+
+    public void testIfNoOneToOneAnnotationThenNoJpaFetchTypeFacet() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithNoOneToOneAnnotation.class;
+        final Method method = cls.getMethod("getOther");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final Facet facet = facetedMethod.getFacet(JpaFetchTypeFacet.class);
+        assertNull(facet);
+    }
+
+    public void testNoMethodsRemoved() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithOneToOneAnnotation.class;
+        final Method method = cls.getMethod("getOther");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        assertNoMethodsRemoved();
+    }
+
+}
+
+// Copyright (c) Naked Objects Group Ltd.

Propchange: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/GivenJpaOneToOneAnnotationFacetFactoryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithNoOneToOneAnnotation.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithNoOneToOneAnnotation.java?rev=1300890&view=auto
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithNoOneToOneAnnotation.java
(added)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithNoOneToOneAnnotation.java
Thu Mar 15 10:37:43 2012
@@ -0,0 +1,16 @@
+package org.apache.isis.extensions.jpa.metamodel.facets.prop.onetoone.onetoone;
+
+
+public class SimpleObjectWithNoOneToOneAnnotation {
+
+    private Long other;
+
+    public Long getOther() {
+        return other;
+    }
+
+    public void setOther(final Long other) {
+        this.other = other;
+    }
+
+}
\ No newline at end of file

Propchange: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithNoOneToOneAnnotation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneAnnotation.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneAnnotation.java?rev=1300890&view=auto
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneAnnotation.java
(added)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneAnnotation.java
Thu Mar 15 10:37:43 2012
@@ -0,0 +1,18 @@
+package org.apache.isis.extensions.jpa.metamodel.facets.prop.onetoone.onetoone;
+
+import javax.persistence.OneToOne;
+
+public class SimpleObjectWithOneToOneAnnotation {
+
+    private Long other;
+
+    @OneToOne
+    public Long getOther() {
+        return other;
+    }
+
+    public void setOther(final Long other) {
+        this.other = other;
+    }
+
+}
\ No newline at end of file

Propchange: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneAnnotation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneFetchEager.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneFetchEager.java?rev=1300890&view=auto
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneFetchEager.java
(added)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneFetchEager.java
Thu Mar 15 10:37:43 2012
@@ -0,0 +1,19 @@
+package org.apache.isis.extensions.jpa.metamodel.facets.prop.onetoone.onetoone;
+
+import javax.persistence.FetchType;
+import javax.persistence.OneToOne;
+
+public class SimpleObjectWithOneToOneFetchEager {
+
+    private Long other;
+
+    @OneToOne(fetch = FetchType.EAGER)
+    public Long getOther() {
+        return other;
+    }
+
+    public void setOther(final Long other) {
+        this.other = other;
+    }
+
+}
\ No newline at end of file

Propchange: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneFetchEager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneFetchLazy.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneFetchLazy.java?rev=1300890&view=auto
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneFetchLazy.java
(added)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneFetchLazy.java
Thu Mar 15 10:37:43 2012
@@ -0,0 +1,19 @@
+package org.apache.isis.extensions.jpa.metamodel.facets.prop.onetoone.onetoone;
+
+import javax.persistence.FetchType;
+import javax.persistence.OneToOne;
+
+public class SimpleObjectWithOneToOneFetchLazy {
+
+    private Long other;
+
+    @OneToOne(fetch = FetchType.LAZY)
+    public Long getOther() {
+        return other;
+    }
+
+    public void setOther(final Long other) {
+        this.other = other;
+    }
+
+}
\ No newline at end of file

Propchange: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneFetchLazy.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneOptionalFalse.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneOptionalFalse.java?rev=1300890&view=auto
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneOptionalFalse.java
(added)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneOptionalFalse.java
Thu Mar 15 10:37:43 2012
@@ -0,0 +1,18 @@
+package org.apache.isis.extensions.jpa.metamodel.facets.prop.onetoone.onetoone;
+
+import javax.persistence.OneToOne;
+
+public class SimpleObjectWithOneToOneOptionalFalse {
+
+    private Long other;
+
+    @OneToOne(optional = false)
+    public Long getOther() {
+        return other;
+    }
+
+    public void setOther(final Long other) {
+        this.other = other;
+    }
+
+}
\ No newline at end of file

Propchange: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneOptionalFalse.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneOptionalTrue.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneOptionalTrue.java?rev=1300890&view=auto
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneOptionalTrue.java
(added)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneOptionalTrue.java
Thu Mar 15 10:37:43 2012
@@ -0,0 +1,18 @@
+package org.apache.isis.extensions.jpa.metamodel.facets.prop.onetoone.onetoone;
+
+import javax.persistence.OneToOne;
+
+public class SimpleObjectWithOneToOneOptionalTrue {
+
+    private Long other;
+
+    @OneToOne(optional = true)
+    public Long getOther() {
+        return other;
+    }
+
+    public void setOther(final Long other) {
+        this.other = other;
+    }
+
+}
\ No newline at end of file

Propchange: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/onetoone/onetoone/SimpleObjectWithOneToOneOptionalTrue.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/GivenJpaTransientAnnotationFacetFactoryTest.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/GivenJpaTransientAnnotationFacetFactoryTest.java?rev=1300890&view=auto
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/GivenJpaTransientAnnotationFacetFactoryTest.java
(added)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/GivenJpaTransientAnnotationFacetFactoryTest.java
Thu Mar 15 10:37:43 2012
@@ -0,0 +1,88 @@
+package org.apache.isis.extensions.jpa.metamodel.facets.prop.transience;
+
+import java.lang.reflect.Method;
+import java.util.List;
+
+import junit.framework.Assert;
+
+import org.apache.isis.core.metamodel.facetapi.Facet;
+import org.apache.isis.core.metamodel.facetapi.FeatureType;
+import org.apache.isis.core.metamodel.facets.FacetFactory;
+import org.apache.isis.core.metamodel.facets.notpersisted.NotPersistedFacet;
+import org.apache.isis.core.progmodel.facets.AbstractFacetFactoryTest;
+
+public class GivenJpaTransientAnnotationFacetFactoryTest extends AbstractFacetFactoryTest
{
+
+    private JpaTransientAnnotationFacetFactory facetFactory;
+
+    @Override
+    protected void setUp() throws Exception {
+        super.setUp();
+
+        facetFactory = new JpaTransientAnnotationFacetFactory();
+    }
+
+    @Override
+    protected void tearDown() throws Exception {
+        facetFactory = null;
+        super.tearDown();
+    }
+
+    public void testFeatureTypes() {
+        final List<FeatureType> featureTypes = facetFactory.getFeatureTypes();
+        Assert.assertFalse(contains(featureTypes, FeatureType.OBJECT));
+        assertTrue(contains(featureTypes, FeatureType.PROPERTY));
+        assertFalse(contains(featureTypes, FeatureType.COLLECTION));
+        Assert.assertFalse(contains(featureTypes, FeatureType.ACTION));
+        assertFalse(contains(featureTypes, FeatureType.ACTION_PARAMETER));
+    }
+
+    public void testTransientAnnotationPickedUpOnProperty() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithTransientAnnotation.class;
+        final Method method = cls.getMethod("getTransientColumn");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final Facet facet = facetedMethod.getFacet(JpaTransientFacet.class);
+        assertNotNull(facet);
+        assertTrue(facet instanceof JpaTransientFacetAnnotation);
+    }
+
+    public void testDerivedFacetDerivedForProperty() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithTransientAnnotation.class;
+        final Method method = cls.getMethod("getTransientColumn");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final NotPersistedFacet facet = facetedMethod.getFacet(NotPersistedFacet.class);
+        assertNotNull(facet);
+        Assert.assertTrue(facet instanceof DerivedFacetDerivedFromJpaTransientAnnotation);
+    }
+
+    public void testIfNoTransientAnnotationThenNoManyToOneColumnFacet() throws Exception
{
+
+        final Class<?> cls = SimpleObjectWithNoTransientAnnotation.class;
+        final Method method = cls.getMethod("getTransientColumn");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        assertNull(facetedMethod.getFacet(JpaTransientFacet.class));
+    }
+
+    public void testIfNoTransientAnnotationThenNoDerivedFacet() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithNoTransientAnnotation.class;
+        final Method method = cls.getMethod("getTransientColumn");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        assertNull(facetedMethod.getFacet(NotPersistedFacet.class));
+    }
+
+    public void testNoMethodsRemoved() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithTransientAnnotation.class;
+        final Method method = cls.getMethod("getTransientColumn");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        assertNoMethodsRemoved();
+    }
+}

Propchange: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/GivenJpaTransientAnnotationFacetFactoryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/SimpleObjectWithNoTransientAnnotation.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/SimpleObjectWithNoTransientAnnotation.java?rev=1300890&view=auto
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/SimpleObjectWithNoTransientAnnotation.java
(added)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/SimpleObjectWithNoTransientAnnotation.java
Thu Mar 15 10:37:43 2012
@@ -0,0 +1,16 @@
+package org.apache.isis.extensions.jpa.metamodel.facets.prop.transience;
+
+
+public class SimpleObjectWithNoTransientAnnotation {
+
+
+    private Long transientColumn;
+
+    public Long getTransientColumn() {
+        return transientColumn;
+    }
+
+    public void setTransientColumn(final Long transientColumn) {
+        this.transientColumn = transientColumn;
+    }
+}
\ No newline at end of file

Propchange: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/SimpleObjectWithNoTransientAnnotation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/SimpleObjectWithTransientAnnotation.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/SimpleObjectWithTransientAnnotation.java?rev=1300890&view=auto
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/SimpleObjectWithTransientAnnotation.java
(added)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/SimpleObjectWithTransientAnnotation.java
Thu Mar 15 10:37:43 2012
@@ -0,0 +1,18 @@
+package org.apache.isis.extensions.jpa.metamodel.facets.prop.transience;
+
+import javax.persistence.Transient;
+
+public class SimpleObjectWithTransientAnnotation {
+
+
+    private Long transientColumn;
+
+    @Transient
+    public Long getTransientColumn() {
+        return transientColumn;
+    }
+
+    public void setTransientColumn(final Long transientColumn) {
+        this.transientColumn = transientColumn;
+    }
+}
\ No newline at end of file

Propchange: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/transience/SimpleObjectWithTransientAnnotation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/GivenJpaVersionAnnotationFacetFactoryTest.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/GivenJpaVersionAnnotationFacetFactoryTest.java?rev=1300890&view=auto
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/GivenJpaVersionAnnotationFacetFactoryTest.java
(added)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/GivenJpaVersionAnnotationFacetFactoryTest.java
Thu Mar 15 10:37:43 2012
@@ -0,0 +1,119 @@
+package org.apache.isis.extensions.jpa.metamodel.facets.prop.version;
+
+import java.lang.reflect.Method;
+import java.util.List;
+
+import junit.framework.Assert;
+
+import org.apache.isis.core.metamodel.facetapi.Facet;
+import org.apache.isis.core.metamodel.facetapi.FeatureType;
+import org.apache.isis.core.metamodel.facets.FacetFactory;
+import org.apache.isis.core.metamodel.facets.mandatory.MandatoryFacet;
+import org.apache.isis.core.progmodel.facets.AbstractFacetFactoryTest;
+import org.apache.isis.core.progmodel.facets.members.disable.DisabledFacet;
+
+
+public class GivenJpaVersionAnnotationFacetFactoryTest extends
+        AbstractFacetFactoryTest {
+
+    private JpaVersionAnnotationFacetFactory facetFactory;
+
+    @Override
+    protected void setUp() throws Exception {
+        super.setUp();
+
+        facetFactory = new JpaVersionAnnotationFacetFactory();
+    }
+
+    @Override
+    protected void tearDown() throws Exception {
+        facetFactory = null;
+        super.tearDown();
+    }
+
+    public void testFeatureTypes() {
+        final List<FeatureType> featureTypes = facetFactory
+                .getFeatureTypes();
+        Assert
+                .assertFalse(contains(featureTypes,
+                FeatureType.OBJECT));
+        assertTrue(contains(featureTypes,
+                FeatureType.PROPERTY));
+        assertFalse(contains(featureTypes,
+                FeatureType.COLLECTION));
+        Assert
+                .assertFalse(contains(featureTypes,
+                FeatureType.ACTION));
+        assertFalse(contains(featureTypes,
+                FeatureType.ACTION_PARAMETER));
+    }
+
+    public void testTransientAnnotationPickedUpOnProperty() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithVersionAnnotation.class;
+        final Method method = cls.getMethod("getVersionColumn");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final Facet facet = facetedMethod.getFacet(JpaVersionFacet.class);
+        assertNotNull(facet);
+        assertTrue(facet instanceof JpaVersionFacetAnnotation);
+    }
+
+    public void testDisabledFacetDerivedForProperty() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithVersionAnnotation.class;
+        final Method method = cls.getMethod("getVersionColumn");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final DisabledFacet facet = facetedMethod.getFacet(DisabledFacet.class);
+        assertNotNull(facet);
+        Assert
+                .assertTrue(facet instanceof DisabledFacetDerivedFromJpaVersionAnnotation);
+    }
+
+    public void testOptionalFacetDerivedForProperty() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithVersionAnnotation.class;
+        final Method method = cls.getMethod("getVersionColumn");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        final MandatoryFacet facet = facetedMethod.getFacet(MandatoryFacet.class);
+        assertNotNull(facet);
+        Assert
+                .assertTrue(facet instanceof OptionalFacetDerivedFromJpaVersionAnnotation);
+    }
+
+
+    public void testIfNoVersionAnnotationThenNoVersionFacet() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithNoVersionAnnotation.class;
+        final Method method = cls.getMethod("getVersionColumn");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        assertNull(facetedMethod.getFacet(JpaVersionFacet.class));
+    }
+
+    public void testIfNoTransientAnnotationThenNoDisabledFacet()
+            throws Exception {
+
+        final Class<?> cls = SimpleObjectWithNoVersionAnnotation.class;
+        final Method method = cls.getMethod("getVersionColumn");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        assertNull(facetedMethod.getFacet(DisabledFacet.class));
+    }
+
+
+    public void testNoMethodsRemoved() throws Exception {
+
+        final Class<?> cls = SimpleObjectWithVersionAnnotation.class;
+        final Method method = cls.getMethod("getVersionColumn");
+        facetFactory.process(new FacetFactory.ProcessMethodContext(cls, method, methodRemover,
facetedMethod));
+
+        assertNoMethodsRemoved();
+    }
+
+
+}
+
+// Copyright (c) Naked Objects Group Ltd.

Propchange: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/GivenJpaVersionAnnotationFacetFactoryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/SimpleObjectWithNoVersionAnnotation.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/SimpleObjectWithNoVersionAnnotation.java?rev=1300890&view=auto
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/SimpleObjectWithNoVersionAnnotation.java
(added)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/SimpleObjectWithNoVersionAnnotation.java
Thu Mar 15 10:37:43 2012
@@ -0,0 +1,16 @@
+package org.apache.isis.extensions.jpa.metamodel.facets.prop.version;
+
+
+public class SimpleObjectWithNoVersionAnnotation {
+
+
+    private Long versionColumn;
+
+    public Long getVersionColumn() {
+        return versionColumn;
+    }
+
+    public void setVersionColumn(final Long versionColumn) {
+        this.versionColumn = versionColumn;
+    }
+}
\ No newline at end of file

Propchange: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/SimpleObjectWithNoVersionAnnotation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/SimpleObjectWithVersionAnnotation.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/SimpleObjectWithVersionAnnotation.java?rev=1300890&view=auto
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/SimpleObjectWithVersionAnnotation.java
(added)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/SimpleObjectWithVersionAnnotation.java
Thu Mar 15 10:37:43 2012
@@ -0,0 +1,18 @@
+package org.apache.isis.extensions.jpa.metamodel.facets.prop.version;
+
+import javax.persistence.Version;
+
+public class SimpleObjectWithVersionAnnotation {
+
+
+    private Long versionColumn;
+
+    @Version
+    public Long getVersionColumn() {
+        return versionColumn;
+    }
+
+    public void setVersionColumn(final Long versionColumn) {
+        this.versionColumn = versionColumn;
+    }
+}
\ No newline at end of file

Propchange: incubator/isis/trunk/framework/runtimes/dflt/objectstores/jpa/jpa-metamodel/src/test/java/org/apache/isis/extensions/jpa/metamodel/facets/prop/version/SimpleObjectWithVersionAnnotation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/mongo/MongoClientCommandContext.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/mongo/MongoClientCommandContext.java?rev=1300890&r1=1300889&r2=1300890&view=diff
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/mongo/MongoClientCommandContext.java
(original)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/mongo/MongoClientCommandContext.java
Thu Mar 15 10:37:43 2012
@@ -19,11 +19,11 @@
 
 package org.apache.isis.runtimes.dflt.objectstores.nosql.mongo;
 
+import com.mongodb.DB;
+
 import org.apache.isis.runtimes.dflt.objectstores.nosql.NoSqlCommandContext;
 import org.apache.isis.runtimes.dflt.objectstores.nosql.StateWriter;
 
-import com.mongodb.DB;
-
 
 public class MongoClientCommandContext implements NoSqlCommandContext {
 

Modified: incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/mongo/MongoDb.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/mongo/MongoDb.java?rev=1300890&r1=1300889&r2=1300890&view=diff
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/mongo/MongoDb.java
(original)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/mongo/MongoDb.java
Thu Mar 15 10:37:43 2012
@@ -23,24 +23,25 @@ import java.net.UnknownHostException;
 import java.util.Iterator;
 import java.util.List;
 
-import org.apache.isis.runtimes.dflt.objectstores.nosql.KeyCreator;
-import org.apache.isis.runtimes.dflt.objectstores.nosql.NoSqlCommandContext;
-import org.apache.isis.runtimes.dflt.objectstores.nosql.NoSqlDataDatabase;
-import org.apache.isis.runtimes.dflt.objectstores.nosql.NoSqlStoreException;
-import org.apache.isis.runtimes.dflt.objectstores.nosql.StateReader;
-import org.apache.isis.runtimes.dflt.objectstores.nosql.StateWriter;
-import org.apache.isis.runtimes.dflt.runtime.persistence.objectstore.transaction.PersistenceCommand;
-import org.apache.log4j.Logger;
-
 import com.mongodb.BasicDBObject;
 import com.mongodb.DB;
+import com.mongodb.DB.WriteConcern;
 import com.mongodb.DBCollection;
 import com.mongodb.DBCursor;
 import com.mongodb.DBObject;
 import com.mongodb.Mongo;
 import com.mongodb.MongoException;
 import com.mongodb.ObjectId;
-import com.mongodb.DB.WriteConcern;
+
+import org.apache.log4j.Logger;
+
+import org.apache.isis.runtimes.dflt.objectstores.nosql.KeyCreator;
+import org.apache.isis.runtimes.dflt.objectstores.nosql.NoSqlCommandContext;
+import org.apache.isis.runtimes.dflt.objectstores.nosql.NoSqlDataDatabase;
+import org.apache.isis.runtimes.dflt.objectstores.nosql.NoSqlStoreException;
+import org.apache.isis.runtimes.dflt.objectstores.nosql.StateReader;
+import org.apache.isis.runtimes.dflt.objectstores.nosql.StateWriter;
+import org.apache.isis.runtimes.dflt.runtime.persistence.objectstore.transaction.PersistenceCommand;
 
 public class MongoDb implements NoSqlDataDatabase {
 

Modified: incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/mongo/MongoPersistorMechanismInstaller.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/mongo/MongoPersistorMechanismInstaller.java?rev=1300890&r1=1300889&r2=1300890&view=diff
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/mongo/MongoPersistorMechanismInstaller.java
(original)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/main/java/org/apache/isis/runtimes/dflt/objectstores/nosql/mongo/MongoPersistorMechanismInstaller.java
Thu Mar 15 10:37:43 2012
@@ -23,8 +23,8 @@ import org.apache.isis.core.commons.conf
 import org.apache.isis.core.commons.config.IsisConfiguration;
 import org.apache.isis.runtimes.dflt.objectstores.nosql.KeyCreator;
 import org.apache.isis.runtimes.dflt.objectstores.nosql.NoSqlDataDatabase;
-import org.apache.isis.runtimes.dflt.objectstores.nosql.NoSqlPersistorMechanismInstaller;
 import org.apache.isis.runtimes.dflt.objectstores.nosql.NoSqlKeyCreator;
+import org.apache.isis.runtimes.dflt.objectstores.nosql.NoSqlPersistorMechanismInstaller;
 
 public class MongoPersistorMechanismInstaller extends NoSqlPersistorMechanismInstaller {
 

Modified: incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/test/java/org/apache/isis/runtimes/dflt/objectstores/nosql/DestroyObjectCommandImplementationTest.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/test/java/org/apache/isis/runtimes/dflt/objectstores/nosql/DestroyObjectCommandImplementationTest.java?rev=1300890&r1=1300889&r2=1300890&view=diff
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/test/java/org/apache/isis/runtimes/dflt/objectstores/nosql/DestroyObjectCommandImplementationTest.java
(original)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/nosql/src/test/java/org/apache/isis/runtimes/dflt/objectstores/nosql/DestroyObjectCommandImplementationTest.java
Thu Mar 15 10:37:43 2012
@@ -19,8 +19,6 @@
 
 package org.apache.isis.runtimes.dflt.objectstores.nosql;
 
-import org.apache.log4j.Level;
-import org.apache.log4j.Logger;
 import org.jmock.Expectations;
 import org.jmock.auto.Mock;
 import org.junit.Before;

Modified: incubator/isis/trunk/framework/runtimes/dflt/objectstores/pom.xml
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/runtimes/dflt/objectstores/pom.xml?rev=1300890&r1=1300889&r2=1300890&view=diff
==============================================================================
--- incubator/isis/trunk/framework/runtimes/dflt/objectstores/pom.xml (original)
+++ incubator/isis/trunk/framework/runtimes/dflt/objectstores/pom.xml Thu Mar 15 10:37:43
2012
@@ -46,7 +46,7 @@
 		<module>xml</module>
 		<module>sql</module>
 		<module>nosql</module>
-		<!-- 
+		<!--
 		<module>jpa</module>
 		-->
 	</modules>



Mime
View raw message