19
19
import static org .junit .Assert .*;
20
20
21
21
import de .schauderhaft .degraph .check .JCheck ;
22
+ import de .schauderhaft .degraph .configuration .NamedPattern ;
22
23
import scala .runtime .AbstractFunction1 ;
23
24
24
- import org .junit .Ignore ;
25
25
import org .junit .Test ;
26
26
27
27
/**
@@ -38,13 +38,14 @@ public void cycleFree() {
38
38
classpath () //
39
39
.noJars () //
40
40
.including ("org.springframework.data.jdbc.**" ) //
41
+ .including ("org.springframework.data.relational.**" ) //
42
+ .including ("org.springframework.data.r2dbc.**" ) //
41
43
.filterClasspath ("*target/classes" ) // exclude test code
42
- .printOnFailure ("degraph.graphml" ),
44
+ .withSlicing ( "modules" , "org.springframework.data.(*).**" ). printOnFailure ("degraph.graphml" ),
43
45
JCheck .violationFree ());
44
46
}
45
47
46
48
@ Test // DATAJDBC-220
47
- @ Ignore ("I don't understand why this fails after adding reactive repos - mp911de" )
48
49
public void acrossModules () {
49
50
50
51
assertThat ( //
@@ -60,8 +61,11 @@ public Object apply(String s) { //
60
61
}) // exclude test code
61
62
.withSlicing ("sub-modules" , // sub-modules are defined by any of the following pattern.
62
63
"org.springframework.data.jdbc.(**).*" , //
64
+ "org.springframework.data.relational.(**).*" , //
65
+ new NamedPattern ("org.springframework.data.r2dbc.**" , "repository.reactive" ), //
63
66
"org.springframework.data.(**).*" ) //
64
67
.printTo ("degraph-across-modules.graphml" ), // writes a graphml to this location
65
68
JCheck .violationFree ());
66
69
}
70
+
67
71
}
0 commit comments