You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2018/11/29 16:42:53 UTC

[isis] branch 2039-Redesign_of_Config updated: ISIS-2039: fixing tests, that fail due to new domain object annot. processing

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch 2039-Redesign_of_Config
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/2039-Redesign_of_Config by this push:
     new 3ea7d47  ISIS-2039: fixing tests, that fail due to new domain object annot. processing
3ea7d47 is described below

commit 3ea7d4706314dc86cb43243528037e1f756a17e2
Author: Andi Huber <ah...@apache.org>
AuthorDate: Thu Nov 29 17:42:46 2018 +0100

    ISIS-2039: fixing tests, that fail due to new domain object annot.
    processing
    
    Task-Url: https://issues.apache.org/jira/browse/ISIS-2039
---
 .../object/domainobjectlayout/DomainObjectLayoutFactoryTest.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/metamodel/src/test/java/org/apache/isis/core/metamodel/facets/object/domainobjectlayout/DomainObjectLayoutFactoryTest.java b/core/metamodel/src/test/java/org/apache/isis/core/metamodel/facets/object/domainobjectlayout/DomainObjectLayoutFactoryTest.java
index 0ea5277..60125cc 100644
--- a/core/metamodel/src/test/java/org/apache/isis/core/metamodel/facets/object/domainobjectlayout/DomainObjectLayoutFactoryTest.java
+++ b/core/metamodel/src/test/java/org/apache/isis/core/metamodel/facets/object/domainobjectlayout/DomainObjectLayoutFactoryTest.java
@@ -23,7 +23,6 @@ import org.jmock.auto.Mock;
 import org.junit.After;
 import org.junit.Assert;
 import org.junit.Before;
-import org.junit.Ignore;
 import org.junit.Test;
 
 import org.apache.isis.applib.annotation.BookmarkPolicy;
@@ -202,6 +201,7 @@ public class DomainObjectLayoutFactoryTest extends AbstractFacetFactoryJUnit4Tes
 
             @Before
             public void setUp() throws Exception {
+                _Config.clear();
                 super.setUp();
             }
 
@@ -230,7 +230,7 @@ public class DomainObjectLayoutFactoryTest extends AbstractFacetFactoryJUnit4Tes
                 facetFactory.process(new FacetFactory.ProcessClassContext(cls, mockMethodRemover, facetHolder));
 
                 final Facet facet = facetHolder.getFacet(CssClassFacet.class);
-                assertNull(facet);
+                assertNotNull(facet);
 
                 expectNoMethodsRemoved();
             }