You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2024/01/19 12:07:09 UTC
(causeway) 06/23: CAUSEWAY-3676: cleans up quite a bit...
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch CAUSEWAY-3676
in repository https://gitbox.apache.org/repos/asf/causeway.git
commit ddbf7fdb4873dc3ff785e4bcf145d5e8d74a9778
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Wed Jan 17 23:27:57 2024 +0000
CAUSEWAY-3676: cleans up quite a bit...
---
.../viewer/test/domain/DepartmentRepository.java | 7 +
.../graphql/viewer/test/domain/DeptHead.java | 2 +-
.../viewer/test/domain/DeptHeadRepository.java | 5 +-
.../test/e2e/Domain_IntegTest.changeName._.gql | 14 -
.../e2e/Domain_IntegTest.changeName.approved.json | 1 -
.../test/e2e/Domain_IntegTest.createE1._.gql | 7 -
.../e2e/Domain_IntegTest.createE1.approved.json | 9 -
.../e2e/Domain_IntegTest.create_department._.gql | 7 +
...omain_IntegTest.create_department.approved.json | 9 +
...in_IntegTest.find_all_departments.approved.json | 4 +-
...IntegTest.find_department_and_change_name._.gql | 14 +
....find_department_and_change_name.approved.json} | 0
.../graphql/viewer/test/e2e/Domain_IntegTest.java | 107 ++-
.../test/e2e/Schema_IntegTest.schema.approved.json | 2 +-
.../graphql/test/src/test/resources/schema.gql | 2 +-
.../viewer/src/test/resources/testfiles/schema.gql | 802 ---------------------
16 files changed, 90 insertions(+), 902 deletions(-)
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/domain/DepartmentRepository.java b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/domain/DepartmentRepository.java
index 3b18e6c5ee..d700795331 100644
--- a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/domain/DepartmentRepository.java
+++ b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/domain/DepartmentRepository.java
@@ -48,4 +48,11 @@ public class DepartmentRepository {
repositoryService.removeAll(Department.class);
}
+ public Department findByName(final String name){
+ return findAll().stream().
+ filter(dept -> dept.getName().equals(name)).
+ findFirst().
+ orElse(null);
+ }
+
}
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/domain/DeptHead.java b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/domain/DeptHead.java
index ad82f41393..a919bfe645 100644
--- a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/domain/DeptHead.java
+++ b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/domain/DeptHead.java
@@ -80,7 +80,7 @@ public class DeptHead implements WithName {
@Action(semantics = SemanticsOf.IDEMPOTENT)
- public class changeDeptHead {
+ public class changeDepartment {
public DeptHead act(final Department department){
setDepartment(department);
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/domain/DeptHeadRepository.java b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/domain/DeptHeadRepository.java
index e96e0110c8..7b315f9574 100644
--- a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/domain/DeptHeadRepository.java
+++ b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/domain/DeptHeadRepository.java
@@ -49,7 +49,10 @@ public class DeptHeadRepository {
}
public DeptHead findByName(final String name){
- return findAll().stream().filter(e2->e2.getName().equals(name)).findFirst().orElse(null);
+ return findAll().stream().
+ filter(deptHead -> deptHead.getName().equals(name)).
+ findFirst().
+ orElse(null);
}
}
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.changeName._.gql b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.changeName._.gql
deleted file mode 100644
index ffc29ff7f8..0000000000
--- a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.changeName._.gql
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- gqltestdomain_GQLTestDomainMenu {
- findE2(name:"foo") {
- name_gql_mutations {
- changeName(newName:"bar") {
- name
- department {
- name
- }
- }
- }
- }
- }
-}
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.changeName.approved.json b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.changeName.approved.json
deleted file mode 100644
index e57317ab99..0000000000
--- a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.changeName.approved.json
+++ /dev/null
@@ -1 +0,0 @@
-{"data":{"gqltestdomain_GQLTestDomainMenu":{"findAllE2":[{"name":"foo","_gql_mutations":null}]}}}
\ No newline at end of file
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.createE1._.gql b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.createE1._.gql
deleted file mode 100644
index da921aa207..0000000000
--- a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.createE1._.gql
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- gqltestdomain_GQLTestDomainMenu {
- createE1(name:"newbee"){
- name
- }
- }
-}
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.createE1.approved.json b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.createE1.approved.json
deleted file mode 100644
index b382db0f3c..0000000000
--- a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.createE1.approved.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "data" : {
- "gqltestdomain_GQLTestDomainMenu" : {
- "createE1" : {
- "name" : "newbee"
- }
- }
- }
-}
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.create_department._.gql b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.create_department._.gql
new file mode 100644
index 0000000000..ab95101b5c
--- /dev/null
+++ b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.create_department._.gql
@@ -0,0 +1,7 @@
+{
+ gql_test_domain_TopLevelMenu {
+ createDepartment(name: "newbie") {
+ name
+ }
+ }
+}
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.create_department.approved.json b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.create_department.approved.json
new file mode 100644
index 0000000000..90328010f5
--- /dev/null
+++ b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.create_department.approved.json
@@ -0,0 +1,9 @@
+{
+ "data" : {
+ "gql_test_domain_TopLevelMenu" : {
+ "createDepartment" : {
+ "name" : "newbie"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.find_all_departments.approved.json b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.find_all_departments.approved.json
index eace6ed631..56ffa2f775 100644
--- a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.find_all_departments.approved.json
+++ b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.find_all_departments.approved.json
@@ -4,14 +4,14 @@
"findAllDepartments" : [ {
"name" : "foo",
"_gql_meta" : {
- "id" : "1",
+ "id" : "2",
"logicalTypeName" : "gql.test.domain.Department",
"version" : null
}
}, {
"name" : "bar",
"_gql_meta" : {
- "id" : "2",
+ "id" : "3",
"logicalTypeName" : "gql.test.domain.Department",
"version" : null
}
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.find_department_and_change_name._.gql b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.find_department_and_change_name._.gql
new file mode 100644
index 0000000000..9d90107009
--- /dev/null
+++ b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.find_department_and_change_name._.gql
@@ -0,0 +1,14 @@
+{
+ gql_test_domain_TopLevelMenu {
+ findDeptHeadByName(name: "foo") {
+ _gql_mutations {
+ changeName(newName: "bar") {
+ name
+ department {
+ name
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.find_all_departments.approved.json b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.find_department_and_change_name.approved.json
similarity index 100%
copy from incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.find_all_departments.approved.json
copy to incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.find_department_and_change_name.approved.json
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.java b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.java
index 0584dcb2f5..352f653784 100644
--- a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.java
+++ b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Domain_IntegTest.java
@@ -18,6 +18,8 @@
*/
package org.apache.causeway.viewer.graphql.viewer.test.e2e;
+import lombok.val;
+
import java.util.ArrayList;
import java.util.List;
@@ -28,6 +30,7 @@ import org.approvaltests.reporters.DiffReporter;
import org.approvaltests.reporters.TextWebReporter;
import org.approvaltests.reporters.UseReporter;
import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
@@ -86,78 +89,56 @@ public class Domain_IntegTest extends CausewayViewerGraphqlTestModuleIntegTestAb
Approvals.verify(submit(), jsonOptions());
}
- //TODO started to fail on 2022-09-04, with testEntityRepository findAll being empty
- @Test @DisabledIfSystemProperty(named = "isRunningWithSurefire", matches = "true")
+ @Test
@UseReporter(DiffReporter.class)
- void createE1() throws Exception {
-
- //File targetFile3 = new File("src/test/resources/testfiles/targetFile3.gql");
-
- String response1 = transactionService.callTransactional(Propagation.REQUIRED, () -> {
+ void create_department() throws Exception {
- String submit = submit();
- // just to show we need to query in separate tranasction
- List<DeptHead> list = deptHeadRepository.findAll();
- assertTrue(list.isEmpty());
- return submit;
+ // when
+ val response = submit();
- }).ifFailureFail().getValue().get();
+ // then payload
+ Approvals.verify(response, jsonOptions());
- final List<Department> allDepartment = new ArrayList<>();
- transactionService.runTransactional(Propagation.REQUIRED, () -> {
-
- List<Department> all = departmentRepository.findAll();
- allDepartment.addAll(all);
-
- });
-
- assertEquals(1, allDepartment.size());
- assertEquals("newbee", allDepartment.get(0).getName());
-
- Approvals.verify(response1, jsonOptions());
+ // and also in the database
+ final List<Department> allDepartment =
+ transactionService.callTransactional(
+ Propagation.REQUIRED,
+ () -> departmentRepository.findAll()
+ ).valueAsNonNullElseFail();
+ assertThat(allDepartment)
+ .hasSize(1)
+ .element(0)
+ .extracting(Department::getName).isEqualTo("newbie");
}
- //TODO started to fail on 2023-07-25
- //disabled to rescue CI build
- @Test @DisabledIfSystemProperty(named = "isRunningWithSurefire", matches = "true")
+ @Test
+ @Disabled // does not yet call 'changeName' action
@UseReporter(DiffReporter.class)
- void changeName() throws Exception {
-
- List<DeptHead> deptHeadList = new ArrayList<>();
-
- transactionService.runTransactional(Propagation.REQUIRED, () -> {
-
- deptHeadList.add(deptHeadRepository.create("foo", null));
-
- });
-
- DeptHead deptHead = deptHeadList.get(0);
- assertEquals("foo", deptHead.getName());
- assertEquals(deptHead.getName(), topLevelMenu.findDeptHeadByName("foo").getName());
-
- String response = transactionService.callTransactional(Propagation.REQUIRED, () -> {
-
- return submit();
-
- }).ifFailureFail().getValue().get();
-
- deptHeadList.clear();
- transactionService.runTransactional(Propagation.REQUIRED, () -> {
-
- List<DeptHead> all = deptHeadRepository.findAll();
- deptHeadList.addAll(all);
-
- });
-
- DeptHead deptHeadModified = deptHeadList.get(0);
-
- //TODO: implement ...
-// assertEquals("bar", deptHeadModified.getName());
-//
-// Approvals.verify(response, new Options());
+ void find_department_and_change_name() throws Exception {
+ // given
+ transactionService.callTransactional(
+ Propagation.REQUIRED,
+ () -> deptHeadRepository.create("foo", null)
+ ).valueAsNonNullElseFail();
+
+ // when lookup 'foo' and change it to 'bar'
+ String response = transactionService.callTransactional(
+ Propagation.REQUIRED,
+ this::submit
+ ).valueAsNonNullElseFail();
+
+ // then payload
+ Approvals.verify(response, jsonOptions());
+
+ // and also in the database
+ DeptHead deptHeadAfter = transactionService.callTransactional(
+ Propagation.REQUIRED,
+ () -> deptHeadRepository.findByName("bar")
+ ).valueAsNullableElseFail();
+
+ assertThat(deptHeadAfter).isNotNull();
}
-
}
diff --git a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Schema_IntegTest.schema.approved.json b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Schema_IntegTest.schema.approved.json
index fc3d84a3d6..cafdedb247 100644
--- a/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Schema_IntegTest.schema.approved.json
+++ b/incubator/viewers/graphql/test/src/test/java/org/apache/causeway/viewer/graphql/viewer/test/e2e/Schema_IntegTest.schema.approved.json
@@ -4806,7 +4806,7 @@
"name" : "gql_test_domain_DeptHead__DomainObject_mutators",
"description" : null,
"fields" : [ {
- "name" : "changeDeptHead",
+ "name" : "changeDepartment",
"description" : null,
"args" : [ {
"name" : "department",
diff --git a/incubator/viewers/graphql/test/src/test/resources/schema.gql b/incubator/viewers/graphql/test/src/test/resources/schema.gql
index 128cc4ba23..06fd0676ee 100644
--- a/incubator/viewers/graphql/test/src/test/resources/schema.gql
+++ b/incubator/viewers/graphql/test/src/test/resources/schema.gql
@@ -374,7 +374,7 @@ type gql_test_domain_DeptHead__DomainObject_meta {
}
type gql_test_domain_DeptHead__DomainObject_mutators {
- changeDeptHead(department: _gql_input__gql_test_domain_Department!): gql_test_domain_DeptHead
+ changeDepartment(department: _gql_input__gql_test_domain_Department!): gql_test_domain_DeptHead
changeName(newName: String!): gql_test_domain_DeptHead
}
diff --git a/incubator/viewers/graphql/viewer/src/test/resources/testfiles/schema.gql b/incubator/viewers/graphql/viewer/src/test/resources/testfiles/schema.gql
deleted file mode 100644
index f10e5556b8..0000000000
--- a/incubator/viewers/graphql/viewer/src/test/resources/testfiles/schema.gql
+++ /dev/null
@@ -1,802 +0,0 @@
-"Marks the field, argument, input field or enum value as deprecated"
-directive @deprecated(
- "The reason for the deprecation"
- reason: String = "No longer supported"
-) on FIELD_DEFINITION | ARGUMENT_DEFINITION | ENUM_VALUE | INPUT_FIELD_DEFINITION
-
-"Directs the executor to include this field or fragment only when the `if` argument is true"
-directive @include(
- "Included when true."
- if: Boolean!
-) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
-
-"Directs the executor to skip this field or fragment when the `if` argument is true."
-directive @skip(
- "Skipped when true."
- if: Boolean!
-) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
-
-"Exposes a URL that specifies the behaviour of this scalar."
-directive @specifiedBy(
- "The URL that specifies the behaviour of this scalar."
- url: String!
-) on SCALAR
-
-type Query {
- causeway_applib_UserMenu: causeway_applib_UserMenu
- causeway_conf_ConfigurationMenu: causeway_conf_ConfigurationMenu
- causeway_security_LogoutMenu: causeway_security_LogoutMenu
- gql_test_domain_TopLevelMenu: gql_test_domain_TopLevelMenu
- numServices: Int
-}
-
-type causeway_applib_DomainObjectList {
- _gql_meta: causeway_applib_DomainObjectList__DomainObject_meta
- actionArguments: String
- actionId: String
- actionOwningFqcn: String
- elementTypeFqcn: String!
- title: String!
-}
-
-type causeway_applib_DomainObjectList__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_applib_FacetGroupNode {
- _gql_meta: causeway_applib_FacetGroupNode__DomainObject_meta
- facets: String!
-}
-
-type causeway_applib_FacetGroupNode__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_applib_ParameterNode {
- _gql_meta: causeway_applib_ParameterNode__DomainObject_meta
- parameter: String!
- parentNode: causeway_applib_node_ActionNode!
-}
-
-type causeway_applib_ParameterNode__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_applib_PropertyNode {
- _gql_meta: causeway_applib_PropertyNode__DomainObject_meta
- _gql_mutations: causeway_applib_PropertyNode__DomainObject_mutators
- mixedIn: String!
- parentNode: causeway_applib_TypeNode!
- property: String!
-}
-
-type causeway_applib_PropertyNode__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_applib_PropertyNode__DomainObject_mutators {
- streamChildNodes: java_util_stream_Stream
-}
-
-type causeway_applib_RoleMemento {
- _gql_meta: causeway_applib_RoleMemento__DomainObject_meta
- description: String!
- name: String!
-}
-
-type causeway_applib_RoleMemento__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_applib_TypeNode {
- _gql_meta: causeway_applib_TypeNode__DomainObject_meta
- domainClassDto: causeway_schema_metamodel_v2_DomainClassDto!
-}
-
-type causeway_applib_TypeNode__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_applib_UserMemento {
- _gql_meta: causeway_applib_UserMemento__DomainObject_meta
- authenticationCode: String!
- authenticationSource: String!
- avatarUrl: String
- impersonating: String!
- languageLocale: String
- multiTenancyToken: String
- name: String!
- numberFormatLocale: String
- realName: String
- roles: [causeway_applib_RoleMemento]
- timeFormatLocale: String
-}
-
-type causeway_applib_UserMemento__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_applib_UserMenu {
- me: causeway_applib_UserMemento
-}
-
-type causeway_applib_node_ActionNode {
- _gql_meta: causeway_applib_node_ActionNode__DomainObject_meta
- _gql_mutations: causeway_applib_node_ActionNode__DomainObject_mutators
- action: String!
- mixedIn: String!
- parentNode: causeway_applib_TypeNode!
-}
-
-type causeway_applib_node_ActionNode__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_applib_node_ActionNode__DomainObject_mutators {
- streamChildNodes: java_util_stream_Stream
-}
-
-type causeway_applib_node_CollectionNode {
- _gql_meta: causeway_applib_node_CollectionNode__DomainObject_meta
- _gql_mutations: causeway_applib_node_CollectionNode__DomainObject_mutators
- collection: String!
- mixedIn: String!
- parentNode: causeway_applib_TypeNode!
-}
-
-type causeway_applib_node_CollectionNode__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_applib_node_CollectionNode__DomainObject_mutators {
- streamChildNodes: java_util_stream_Stream
-}
-
-type causeway_applib_node_FacetAttrNode {
- _gql_meta: causeway_applib_node_FacetAttrNode__DomainObject_meta
- facetAttr: String!
- parentNode: causeway_applib_node_FacetNode!
-}
-
-type causeway_applib_node_FacetAttrNode__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_applib_node_FacetNode {
- _gql_meta: causeway_applib_node_FacetNode__DomainObject_meta
- facet: String!
- shadowed: String!
-}
-
-type causeway_applib_node_FacetNode__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_conf_ConfigurationMenu {
- configuration: causeway_conf_ConfigurationViewmodel
-}
-
-type causeway_conf_ConfigurationProperty {
- _gql_meta: causeway_conf_ConfigurationProperty__DomainObject_meta
- key: String!
- value: String!
-}
-
-type causeway_conf_ConfigurationProperty__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_conf_ConfigurationViewmodel {
- _gql_meta: causeway_conf_ConfigurationViewmodel__DomainObject_meta
- environment: [causeway_conf_ConfigurationProperty]
- primary: [causeway_conf_ConfigurationProperty]
- secondary: [causeway_conf_ConfigurationProperty]
-}
-
-type causeway_conf_ConfigurationViewmodel__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_feat_ApplicationFeatureViewModel {
- _gql_meta: causeway_feat_ApplicationFeatureViewModel__DomainObject_meta
- memberName: String!
- namespaceName: String!
- typeSimpleName: String!
-}
-
-type causeway_feat_ApplicationFeatureViewModel__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_feat_ApplicationNamespace {
- _gql_meta: causeway_feat_ApplicationNamespace__DomainObject_meta
- memberName: String!
- namespaceName: String!
- typeSimpleName: String!
-}
-
-type causeway_feat_ApplicationNamespace__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_feat_ApplicationType {
- _gql_meta: causeway_feat_ApplicationType__DomainObject_meta
- actions: [causeway_feat_ApplicationTypeAction]
- collections: [causeway_feat_ApplicationTypeCollection]
- memberName: String!
- namespaceName: String!
- properties: [causeway_feat_ApplicationTypeProperty]
- typeSimpleName: String!
-}
-
-type causeway_feat_ApplicationTypeAction {
- _gql_meta: causeway_feat_ApplicationTypeAction__DomainObject_meta
- actionSemantics: String!
- memberName: String!
- namespaceName: String!
- returnType: String!
- typeSimpleName: String!
-}
-
-type causeway_feat_ApplicationTypeAction__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_feat_ApplicationTypeCollection {
- _gql_meta: causeway_feat_ApplicationTypeCollection__DomainObject_meta
- derived: String!
- elementType: String!
- memberName: String!
- namespaceName: String!
- typeSimpleName: String!
-}
-
-type causeway_feat_ApplicationTypeCollection__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_feat_ApplicationTypeMember {
- _gql_meta: causeway_feat_ApplicationTypeMember__DomainObject_meta
- memberName: String!
- namespaceName: String!
- typeSimpleName: String!
-}
-
-type causeway_feat_ApplicationTypeMember__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_feat_ApplicationTypeProperty {
- _gql_meta: causeway_feat_ApplicationTypeProperty__DomainObject_meta
- derived: String!
- maxLength: String
- memberName: String!
- namespaceName: String!
- returnType: String!
- typeSimpleName: String!
- typicalLength: String
-}
-
-type causeway_feat_ApplicationTypeProperty__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_feat_ApplicationType__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_schema_metamodel_v2_DomainClassDto {
- _gql_meta: causeway_schema_metamodel_v2_DomainClassDto__DomainObject_meta
- actions: String!
- annotations: String!
- collections: String!
- facets: String!
- id: String!
- majorVersion: String
- minorVersion: String
- properties: String!
- service: String!
-}
-
-type causeway_schema_metamodel_v2_DomainClassDto__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_security_LoginRedirect {
- _gql_meta: causeway_security_LoginRedirect__DomainObject_meta
-}
-
-type causeway_security_LoginRedirect__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type causeway_security_LogoutMenu {
- logout: String
-}
-
-type causeway_testing_fixtures_FixtureResult {
- _gql_meta: causeway_testing_fixtures_FixtureResult__DomainObject_meta
- className: String!
- fixtureScriptClassName: String
- key: String!
-}
-
-type causeway_testing_fixtures_FixtureResult__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type gql_test_domain_Department {
- _gql_meta: gql_test_domain_Department__DomainObject_meta
- deptHead: gql_test_domain_DeptHead
- name: String!
-}
-
-type gql_test_domain_Department__DomainObject_meta {
- id: String!
- logicalTypeName: String!
- version: String
-}
-
-type gql_test_domain_DeptHead {
- _gql_meta: gql_test_domain_DeptHead__DomainObject_meta
- _gql_mutations: gql_test_domain_DeptHead__DomainObject_mutators
- department: gql_test_domain_Department
- name: String
-}
-
-type gql_test_domain_DeptHead__DomainObject_meta {
- id: String!
- logicalTypeName: String!
- version: String
-}
-
-type gql_test_domain_DeptHead__DomainObject_mutators {
- changeDeptHead(department: _gql_input__gql_test_domain_Department!): gql_test_domain_DeptHead
- changeName(newName: String!): gql_test_domain_DeptHead
-}
-
-type gql_test_domain_TopLevelMenu {
- createDepartment(deptHead: _gql_input__gql_test_domain_DeptHead, name: String): gql_test_domain_Department
- findAllDepartments: [gql_test_domain_Department]
- findAllDeptHeads: [gql_test_domain_DeptHead]
- findAllEntitiesWithName: [org_apache_causeway_viewer_graphql_viewer_test_domain_WithName]
- findDeptHeadByName(name: String): gql_test_domain_DeptHead
-}
-
-type java_lang_Runnable {
- _gql_meta: java_lang_Runnable__DomainObject_meta
-}
-
-type java_lang_Runnable__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type java_util_Map {
- _gql_meta: java_util_Map__DomainObject_meta
-}
-
-type java_util_Map__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type java_util_SortedMap {
- _gql_meta: java_util_SortedMap__DomainObject_meta
-}
-
-type java_util_SortedMap__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type java_util_concurrent_Callable {
- _gql_meta: java_util_concurrent_Callable__DomainObject_meta
-}
-
-type java_util_concurrent_Callable__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type java_util_function_BiFunction {
- _gql_meta: java_util_function_BiFunction__DomainObject_meta
-}
-
-type java_util_function_BiFunction__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type java_util_function_Consumer {
- _gql_meta: java_util_function_Consumer__DomainObject_meta
-}
-
-type java_util_function_Consumer__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type java_util_function_Function {
- _gql_meta: java_util_function_Function__DomainObject_meta
-}
-
-type java_util_function_Function__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type java_util_stream_Stream {
- _gql_meta: java_util_stream_Stream__DomainObject_meta
-}
-
-type java_util_stream_Stream__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type org_apache_causeway_commons_functional_Either {
- _gql_meta: org_apache_causeway_commons_functional_Either__DomainObject_meta
- _gql_mutations: org_apache_causeway_commons_functional_Either__DomainObject_mutators
- left: String!
- right: String!
-}
-
-type org_apache_causeway_commons_functional_Either__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type org_apache_causeway_commons_functional_Either__DomainObject_mutators {
- accept(leftConsumer: _gql_input__java_util_function_Consumer!, rightConsumer: _gql_input__java_util_function_Consumer!): String
- left: String
- map(leftMapper: _gql_input__java_util_function_Function!, rightMapper: _gql_input__java_util_function_Function!): org_apache_causeway_commons_functional_Either
- mapLeft(leftMapper: _gql_input__java_util_function_Function!): org_apache_causeway_commons_functional_Either
- mapRight(rightMapper: _gql_input__java_util_function_Function!): org_apache_causeway_commons_functional_Either
- right: String
-}
-
-type org_apache_causeway_commons_functional_Railway {
- _gql_meta: org_apache_causeway_commons_functional_Railway__DomainObject_meta
- _gql_mutations: org_apache_causeway_commons_functional_Railway__DomainObject_mutators
- failure: String!
- success: String!
-}
-
-type org_apache_causeway_commons_functional_Railway__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type org_apache_causeway_commons_functional_Railway__DomainObject_mutators {
- chain(chainingFunction: _gql_input__org_apache_causeway_commons_functional_ThrowingFunction!): org_apache_causeway_commons_functional_Railway
- ifFailure(failureConsumer: _gql_input__org_apache_causeway_commons_functional_ThrowingConsumer!): org_apache_causeway_commons_functional_Railway
- ifSuccess(successConsumer: _gql_input__org_apache_causeway_commons_functional_ThrowingConsumer!): org_apache_causeway_commons_functional_Railway
- mapFailure(failureMapper: _gql_input__org_apache_causeway_commons_functional_ThrowingFunction!): org_apache_causeway_commons_functional_Railway
- mapSuccess(successMapper: _gql_input__org_apache_causeway_commons_functional_ThrowingFunction!): org_apache_causeway_commons_functional_Railway
-}
-
-type org_apache_causeway_commons_functional_ThrowingConsumer {
- _gql_meta: org_apache_causeway_commons_functional_ThrowingConsumer__DomainObject_meta
- _gql_mutations: org_apache_causeway_commons_functional_ThrowingConsumer__DomainObject_mutators
-}
-
-type org_apache_causeway_commons_functional_ThrowingConsumer__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type org_apache_causeway_commons_functional_ThrowingConsumer__DomainObject_mutators {
- andThen(arg0: _gql_input__java_util_function_Consumer!): java_util_function_Consumer
- throwing(exceptionWrapper: _gql_input__java_util_function_BiFunction!): org_apache_causeway_commons_functional_ThrowingConsumer
-}
-
-type org_apache_causeway_commons_functional_ThrowingFunction {
- _gql_meta: org_apache_causeway_commons_functional_ThrowingFunction__DomainObject_meta
- _gql_mutations: org_apache_causeway_commons_functional_ThrowingFunction__DomainObject_mutators
-}
-
-type org_apache_causeway_commons_functional_ThrowingFunction__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type org_apache_causeway_commons_functional_ThrowingFunction__DomainObject_mutators {
- andThen(arg0: _gql_input__java_util_function_Function!): java_util_function_Function
- compose(arg0: _gql_input__java_util_function_Function!): java_util_function_Function
- throwing(exceptionWrapper: _gql_input__java_util_function_BiFunction!): org_apache_causeway_commons_functional_ThrowingFunction
-}
-
-type org_apache_causeway_commons_functional_ThrowingRunnable {
- _gql_meta: org_apache_causeway_commons_functional_ThrowingRunnable__DomainObject_meta
- _gql_mutations: org_apache_causeway_commons_functional_ThrowingRunnable__DomainObject_mutators
-}
-
-type org_apache_causeway_commons_functional_ThrowingRunnable__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type org_apache_causeway_commons_functional_ThrowingRunnable__DomainObject_mutators {
- callUncatched: String
- run: String
- runUncatched: String
- toCallable: java_util_concurrent_Callable
- toRunnable: java_lang_Runnable
-}
-
-type org_apache_causeway_commons_functional_Try {
- _gql_meta: org_apache_causeway_commons_functional_Try__DomainObject_meta
- _gql_mutations: org_apache_causeway_commons_functional_Try__DomainObject_mutators
- failure: String!
- success: String!
-}
-
-type org_apache_causeway_commons_functional_Try__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type org_apache_causeway_commons_functional_Try__DomainObject_mutators {
- accept(failureConsumer: _gql_input__org_apache_causeway_commons_functional_ThrowingConsumer!, successConsumer: _gql_input__org_apache_causeway_commons_functional_ThrowingConsumer!): org_apache_causeway_commons_functional_Try
- flatMapSuccess(successMapper: _gql_input__org_apache_causeway_commons_functional_ThrowingFunction!): org_apache_causeway_commons_functional_Try
- flatMapSuccessAsNullable(successMapper: _gql_input__org_apache_causeway_commons_functional_ThrowingFunction!): org_apache_causeway_commons_functional_Try
- flatMapSuccessWhenPresent(successMapper: _gql_input__org_apache_causeway_commons_functional_ThrowingFunction!): org_apache_causeway_commons_functional_Try
- ifAbsentFail: org_apache_causeway_commons_functional_Try
- ifFailure(exceptionConsumer: _gql_input__org_apache_causeway_commons_functional_ThrowingConsumer!): org_apache_causeway_commons_functional_Try
- ifFailureFail: org_apache_causeway_commons_functional_Try
- ifSuccess(valueConsumer: _gql_input__org_apache_causeway_commons_functional_ThrowingConsumer!): org_apache_causeway_commons_functional_Try
- ifSuccessAsNullable(valueConsumer: _gql_input__org_apache_causeway_commons_functional_ThrowingConsumer!): org_apache_causeway_commons_functional_Try
- mapEmptyToFailure: org_apache_causeway_commons_functional_Try
- mapFailure(failureMapper: _gql_input__org_apache_causeway_commons_functional_ThrowingFunction!): org_apache_causeway_commons_functional_Try
- mapFailureToSuccess(recoveryMapper: _gql_input__org_apache_causeway_commons_functional_ThrowingFunction!): org_apache_causeway_commons_functional_Try
- mapSuccess(successMapper: _gql_input__org_apache_causeway_commons_functional_ThrowingFunction!): org_apache_causeway_commons_functional_Try
- mapSuccessAsNullable(successMapper: _gql_input__org_apache_causeway_commons_functional_ThrowingFunction!): org_apache_causeway_commons_functional_Try
- mapSuccessWhenPresent(successMapper: _gql_input__org_apache_causeway_commons_functional_ThrowingFunction!): org_apache_causeway_commons_functional_Try
- mapToEither(failureMapper: _gql_input__org_apache_causeway_commons_functional_ThrowingFunction!, successMapper: _gql_input__org_apache_causeway_commons_functional_ThrowingFunction!): org_apache_causeway_commons_functional_Either
- orCall(fallback: _gql_input__java_util_concurrent_Callable!): org_apache_causeway_commons_functional_Try
- then(next: _gql_input__java_util_concurrent_Callable!): org_apache_causeway_commons_functional_Try
- thenCall(callable: _gql_input__java_util_concurrent_Callable!): org_apache_causeway_commons_functional_Try
- thenRun(runnable: _gql_input__org_apache_causeway_commons_functional_ThrowingRunnable!): org_apache_causeway_commons_functional_Try
-}
-
-type org_apache_causeway_core_metamodel_inspect_model_MMNode {
- _gql_meta: org_apache_causeway_core_metamodel_inspect_model_MMNode__DomainObject_meta
-}
-
-type org_apache_causeway_core_metamodel_inspect_model_MMNode__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type org_apache_causeway_core_metamodel_inspect_model_MemberNode {
- _gql_meta: org_apache_causeway_core_metamodel_inspect_model_MemberNode__DomainObject_meta
- _gql_mutations: org_apache_causeway_core_metamodel_inspect_model_MemberNode__DomainObject_mutators
- mixedIn: String!
- parentNode: causeway_applib_TypeNode!
-}
-
-type org_apache_causeway_core_metamodel_inspect_model_MemberNode__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type org_apache_causeway_core_metamodel_inspect_model_MemberNode__DomainObject_mutators {
- streamChildNodes: java_util_stream_Stream
-}
-
-type org_apache_causeway_testing_fixtures_applib_fixturescripts_FixtureScript {
- _gql_meta: org_apache_causeway_testing_fixtures_applib_fixturescripts_FixtureScript__DomainObject_meta
- friendlyName: String!
- qualifiedName: String!
-}
-
-type org_apache_causeway_testing_fixtures_applib_fixturescripts_FixtureScript__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-type org_apache_causeway_viewer_graphql_viewer_test_domain_WithName {
- _gql_meta: org_apache_causeway_viewer_graphql_viewer_test_domain_WithName__DomainObject_meta
- name: String!
-}
-
-type org_apache_causeway_viewer_graphql_viewer_test_domain_WithName__DomainObject_meta {
- id: String!
- logicalTypeName: String!
-}
-
-input _gql_input__causeway_applib_DomainObjectList {
- id: ID!
-}
-
-input _gql_input__causeway_applib_FacetGroupNode {
- id: ID!
-}
-
-input _gql_input__causeway_applib_ParameterNode {
- id: ID!
-}
-
-input _gql_input__causeway_applib_PropertyNode {
- id: ID!
-}
-
-input _gql_input__causeway_applib_RoleMemento {
- id: ID!
-}
-
-input _gql_input__causeway_applib_TypeNode {
- id: ID!
-}
-
-input _gql_input__causeway_applib_UserMemento {
- id: ID!
-}
-
-input _gql_input__causeway_applib_node_ActionNode {
- id: ID!
-}
-
-input _gql_input__causeway_applib_node_CollectionNode {
- id: ID!
-}
-
-input _gql_input__causeway_applib_node_FacetAttrNode {
- id: ID!
-}
-
-input _gql_input__causeway_applib_node_FacetNode {
- id: ID!
-}
-
-input _gql_input__causeway_conf_ConfigurationProperty {
- id: ID!
-}
-
-input _gql_input__causeway_conf_ConfigurationViewmodel {
- id: ID!
-}
-
-input _gql_input__causeway_feat_ApplicationFeatureViewModel {
- id: ID!
-}
-
-input _gql_input__causeway_feat_ApplicationNamespace {
- id: ID!
-}
-
-input _gql_input__causeway_feat_ApplicationType {
- id: ID!
-}
-
-input _gql_input__causeway_feat_ApplicationTypeAction {
- id: ID!
-}
-
-input _gql_input__causeway_feat_ApplicationTypeCollection {
- id: ID!
-}
-
-input _gql_input__causeway_feat_ApplicationTypeMember {
- id: ID!
-}
-
-input _gql_input__causeway_feat_ApplicationTypeProperty {
- id: ID!
-}
-
-input _gql_input__causeway_schema_metamodel_v2_DomainClassDto {
- id: ID!
-}
-
-input _gql_input__causeway_security_LoginRedirect {
- id: ID!
-}
-
-input _gql_input__causeway_testing_fixtures_FixtureResult {
- id: ID!
-}
-
-input _gql_input__gql_test_domain_Department {
- id: ID!
-}
-
-input _gql_input__gql_test_domain_DeptHead {
- id: ID!
-}
-
-input _gql_input__java_lang_Runnable {
- id: ID!
-}
-
-input _gql_input__java_util_Map {
- id: ID!
-}
-
-input _gql_input__java_util_SortedMap {
- id: ID!
-}
-
-input _gql_input__java_util_concurrent_Callable {
- id: ID!
-}
-
-input _gql_input__java_util_function_BiFunction {
- id: ID!
-}
-
-input _gql_input__java_util_function_Consumer {
- id: ID!
-}
-
-input _gql_input__java_util_function_Function {
- id: ID!
-}
-
-input _gql_input__java_util_stream_Stream {
- id: ID!
-}
-
-input _gql_input__org_apache_causeway_commons_functional_Either {
- id: ID!
-}
-
-input _gql_input__org_apache_causeway_commons_functional_Railway {
- id: ID!
-}
-
-input _gql_input__org_apache_causeway_commons_functional_ThrowingConsumer {
- id: ID!
-}
-
-input _gql_input__org_apache_causeway_commons_functional_ThrowingFunction {
- id: ID!
-}
-
-input _gql_input__org_apache_causeway_commons_functional_ThrowingRunnable {
- id: ID!
-}
-
-input _gql_input__org_apache_causeway_commons_functional_Try {
- id: ID!
-}
-
-input _gql_input__org_apache_causeway_core_metamodel_inspect_model_MMNode {
- id: ID!
-}
-
-input _gql_input__org_apache_causeway_core_metamodel_inspect_model_MemberNode {
- id: ID!
-}
-
-input _gql_input__org_apache_causeway_testing_fixtures_applib_fixturescripts_FixtureScript {
- id: ID!
-}
-
-input _gql_input__org_apache_causeway_viewer_graphql_viewer_test_domain_WithName {
- id: ID!
-}