Home > JMockit-Expectation-Inherit-2

JMockit-Expectation-Inherit-2

JMockit-Expectation-Inherit-2 is a project mainly written in Java, it's free.

Expectation inheritance via separate classes not working

Example using Expectation based inheritance with separate full class based Inherited Expectations - seems this doesnt work

Chris-Kimptons-MacBook-Air:jmock-exp-inheritance2 kimptoc$ ant -f jmock-exp-inheritance.xml all-testsBuildfile: /Users/kimptoc/Documents/java/jmock-exp-inheritance2/jmock-exp-inheritance.xml

init:

clean.module.jmock-exp-inheritance: [delete] Deleting directory /Users/kimptoc/Documents/java/jmock-exp-inheritance2/out/production/jmock-exp-inheritance

clean:

compile.module.jmock-exp-inheritance.production: [mkdir] Created dir: /Users/kimptoc/Documents/java/jmock-exp-inheritance2/out/production/jmock-exp-inheritance [javac] /Users/kimptoc/Documents/java/jmock-exp-inheritance2/jmock-exp-inheritance.xml:136: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 3 source files to /Users/kimptoc/Documents/java/jmock-exp-inheritance2/out/production/jmock-exp-inheritance

compile.module.jmock-exp-inheritance.tests:

compile.module.jmock-exp-inheritance:

build.modules:

tests2:

tests2: [testng] [TestNG] Running: [testng] Ant suite [testng] [testng] initThing Mocking [testng] [testng] =============================================== [testng] Ant suite [testng] Total tests run: 1, Failures: 1, Skips: 0 [testng] =============================================== [testng] [testng] The tests failed.

all-tests:

BUILD SUCCESSFUL Total time: 7 seconds