@diffblue/java-combiner
v0.1.8-temp-bugfix-test
Published
Java test combining library
Downloads
11
Keywords
Readme
Diffblue Java combiner
The Diffblue Java combiner takes an array of Java methods (usually jUnit tests) and combines them into a single java class.
It can also add new test methods to an existing class.
Installation
Using npm:
npm install @diffblue/java-combiner
Usage
Example usage:
var combiner = require('@diffblue/java-combiner');
const result = combiner.genTestClass([
{imports: ['com.example.foo.Foo'], test: ' public integer test() {\n new com.example.foo.Foo();\n }'},
{imports: ['com.example.bar.Foo'], test: ' public integer test2() {\n new com.example.bar.Foo()\n }'},
], 'MyClassTest', 'MyClass', 'com.example');
console.log(result);
© 2019 Diffblue Limited. See the file LICENSE for usage information.