Skip to content

Commit

Permalink
Drop dependency on creek-base (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
big-andy-coates committed Nov 5, 2022
1 parent f7123b9 commit 1026118
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion conformity/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ dependencies {
implementation("io.github.classgraph:classgraph:$classGraphVersion")

testImplementation(project(":util"))
testImplementation("org.creekservice:creek-base-annotation:0.2.0")
}
4 changes: 2 additions & 2 deletions conformity/src/test/java/module-info.test
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
--add-modules
org.junitpioneer,org.hamcrest,guava.testlib,creek.base.annotation
org.junitpioneer,org.hamcrest,guava.testlib,creek.test.util

--add-reads
creek.test.conformity=org.junitpioneer,org.hamcrest,guava.testlib,creek.base.annotation
creek.test.conformity=org.junitpioneer,org.hamcrest,guava.testlib,creek.test.util

--add-opens
org.junitpioneer/org.junitpioneer.jupiter=org.junit.platform.commons
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import static org.hamcrest.MatcherAssert.assertThat;

import io.github.classgraph.ClassInfo;
import org.creekservice.api.base.annotation.VisibleForTesting;
import org.creekservice.api.test.conformity.ConformityTester;
import org.creekservice.api.test.util.TestPaths;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -82,17 +82,13 @@ void shouldNotReturnCreekClassesFromOtherModules() {
"from classes",
finder.classes()
.map(ClassInfo::getSimpleName)
.noneMatch(
className ->
className.equals(VisibleForTesting.class.getSimpleName())));
.noneMatch(className -> className.equals(TestPaths.class.getSimpleName())));

assertThat(
"from api classes",
finder.apiClasses()
.map(ClassInfo::getSimpleName)
.noneMatch(
className ->
className.equals(VisibleForTesting.class.getSimpleName())));
.noneMatch(className -> className.equals(TestPaths.class.getSimpleName())));
}

@Test
Expand Down

0 comments on commit 1026118

Please sign in to comment.