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 2021/03/08 09:24:23 UTC
[isis] branch master updated: ISIS-2571: restore original test
semantics
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new 39dd3c7 ISIS-2571: restore original test semantics
39dd3c7 is described below
commit 39dd3c725a677fe05c9fd997a203cb7e06ebfb9a
Author: Andi Huber <ah...@apache.org>
AuthorDate: Mon Mar 8 10:24:16 2021 +0100
ISIS-2571: restore original test semantics
---
.../services/appfeat/ApplicationFeatureIdTest.java | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/core/metamodel/src/test/java/org/apache/isis/core/metamodel/services/appfeat/ApplicationFeatureIdTest.java b/core/metamodel/src/test/java/org/apache/isis/core/metamodel/services/appfeat/ApplicationFeatureIdTest.java
index abfd2d0..c560dad 100644
--- a/core/metamodel/src/test/java/org/apache/isis/core/metamodel/services/appfeat/ApplicationFeatureIdTest.java
+++ b/core/metamodel/src/test/java/org/apache/isis/core/metamodel/services/appfeat/ApplicationFeatureIdTest.java
@@ -305,17 +305,12 @@ public class ApplicationFeatureIdTest {
@Test
public void givenClassInRootPackage() throws Exception {
- // given
- val applicationFeatureId = ApplicationFeatureId.newType("x.Bar");
-
+
+ // expect
+ expectedException.expect(IllegalArgumentException.class);
+
// when
- val parentPackageId = applicationFeatureId.getParentNamespaceFeatureId();
-
- // then
- assertThat(parentPackageId.getSort(), is(ApplicationFeatureSort.NAMESPACE));
- assertThat(parentPackageId.getNamespace(), is("x"));
- assertThat(parentPackageId.getTypeSimpleName(), is(nullValue()));
- assertThat(parentPackageId.getMemberName(), is(nullValue()));
+ ApplicationFeatureId.newType("Bar");
}
@Test