@diffblue/java-combiner
TypeScript icon, indicating that this package has built-in type declarations

0.1.8-temp-bugfix-test • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @diffblue/java-combiner

Weekly Downloads

1

Version

0.1.8-temp-bugfix-test

License

MIT

Unpacked Size

95.8 kB

Total Files

28

Last publish

Collaborators

  • db-ci-platform
  • peterjwest
  • peterschrammel
  • rjmunro
  • ryanbarwick