This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ import spock.lang.Title
|
||||
@Narrative("""The factory must generate a test command, so
|
||||
those tests check if factory generate them right.
|
||||
""")
|
||||
@Title("Unit test for TestCommandFactory")
|
||||
@Title("Unit tests for TestCommandFactory")
|
||||
class TestCommandFactorySpec extends Specification {
|
||||
def "If the map of methods have one test block."() {
|
||||
given: "I have a TestCommandFactory object"
|
||||
|
||||
+3
-3
@@ -10,12 +10,12 @@ those tests check if responses are right.
|
||||
""")
|
||||
@Title("Integrated tests for NameClassLoader.")
|
||||
class IntegratedNameClassLoader extends Specification {
|
||||
def "The class has been run."() {
|
||||
def "The class names have been loaded."() {
|
||||
given: "I have a class loader"
|
||||
@Subject
|
||||
def loader = new NameClassLoader();
|
||||
def loader = new NameClassLoader()
|
||||
|
||||
when: "The class names ware loaded"
|
||||
when: "The class names were loaded"
|
||||
def classNames = loader.load()
|
||||
|
||||
then: "Checking that the test result is expected"
|
||||
|
||||
+2
-2
@@ -11,10 +11,10 @@ those tests check if responses are right.
|
||||
""")
|
||||
@Title("Integrated tests for ClassLoader.")
|
||||
class IntegratedSingleClassLoader extends Specification {
|
||||
def "The class has been run."() {
|
||||
def "The class has been loaded."() {
|
||||
given: "I have a class loader"
|
||||
@Subject
|
||||
def loader = new SingleClassLoader(className);
|
||||
def loader = new SingleClassLoader(className)
|
||||
|
||||
when: "The class was loaded"
|
||||
def aClass = loader.load()
|
||||
|
||||
Reference in New Issue
Block a user