Add the NameClassLoader.
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2023-09-30 21:25:37 +03:00
parent a0880372f8
commit 38f4cf3464
3 changed files with 61 additions and 0 deletions
@@ -0,0 +1,25 @@
package space.kklochko.simple_jbdd.tests.loaders
import spock.lang.Narrative
import spock.lang.Specification
import spock.lang.Subject
import spock.lang.Title
@Narrative("""The loader must return a test class names or null, so
those tests check if responses are right.
""")
@Title("Integrated tests for NameClassLoader.")
class IntegratedNameClassLoader extends Specification {
def "The class has been run."() {
given: "I have a class loader"
@Subject
def loader = new NameClassLoader();
when: "The class names ware loaded"
def classNames = loader.load()
then: "Checking that the test result is expected"
3 == classNames.size()
}
}