File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
main/java/org/neo4j/driver/types
test/java/org/neo4j/driver/types Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 18
18
*/
19
19
package org .neo4j .driver .types ;
20
20
21
+ import static org .neo4j .driver .internal .types .InternalTypeSystem .TYPE_SYSTEM ;
22
+
21
23
import org .neo4j .driver .util .Experimental ;
22
24
import org .neo4j .driver .util .Immutable ;
23
25
28
30
@ Immutable
29
31
@ Experimental
30
32
public interface TypeSystem {
33
+ static TypeSystem getInstance () {
34
+ return TYPE_SYSTEM ;
35
+ }
36
+
31
37
Type ANY ();
32
38
33
39
Type BOOLEAN ();
Original file line number Diff line number Diff line change 21
21
import static org .hamcrest .CoreMatchers .not ;
22
22
import static org .hamcrest .core .Is .is ;
23
23
import static org .hamcrest .junit .MatcherAssert .assertThat ;
24
+ import static org .junit .jupiter .api .Assertions .assertEquals ;
24
25
import static org .neo4j .driver .Values .value ;
25
26
import static org .neo4j .driver .internal .types .InternalTypeSystem .TYPE_SYSTEM ;
26
27
@@ -75,6 +76,11 @@ private TypeVerifier newTypeVerifierFor(Type type) {
75
76
return new TypeVerifier (type , allValues );
76
77
}
77
78
79
+ @ Test
80
+ void shouldReturnTypeSystem () {
81
+ assertEquals (TYPE_SYSTEM , TypeSystem .getInstance ());
82
+ }
83
+
78
84
@ Test
79
85
void shouldNameTypeCorrectly () {
80
86
assertThat (TYPE_SYSTEM .ANY ().name (), is ("ANY" ));
You can’t perform that action at this time.
0 commit comments