Powerunit - Java Testing framework for JDK 1.8

This is a test framework for the JDK 1.8.

License

License

GroupId

GroupId

ch.powerunit
ArtifactId

ArtifactId

powerunit
Last Version

Last Version

0.5.0
Release Date

Release Date

Type

Type

jar
Description

Description

Powerunit - Java Testing framework for JDK 1.8
This is a test framework for the JDK 1.8.
Project URL

Project URL

http://www.powerunit.ch/powerunit
Project Organization

Project Organization

Powerunit
Source Code Management

Source Code Management

https://github.com/powerunit/powerunit/

Download powerunit

How to add to project

<!-- https://jarcasting.com/artifacts/ch.powerunit/powerunit/ -->
<dependency>
    <groupId>ch.powerunit</groupId>
    <artifactId>powerunit</artifactId>
    <version>0.5.0</version>
</dependency>
// https://jarcasting.com/artifacts/ch.powerunit/powerunit/
implementation 'ch.powerunit:powerunit:0.5.0'
// https://jarcasting.com/artifacts/ch.powerunit/powerunit/
implementation ("ch.powerunit:powerunit:0.5.0")
'ch.powerunit:powerunit:jar:0.5.0'
<dependency org="ch.powerunit" name="powerunit" rev="0.5.0">
  <artifact name="powerunit" type="jar" />
</dependency>
@Grapes(
@Grab(group='ch.powerunit', module='powerunit', version='0.5.0')
)
libraryDependencies += "ch.powerunit" % "powerunit" % "0.5.0"
[ch.powerunit/powerunit "0.5.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.hamcrest : hamcrest-all jar 1.3
org.apache.maven.surefire : surefire-api Optional jar 2.21.0
org.mockito : mockito-all jar 1.10.19

Project Modules

There are no modules declared in this project.

powerunitBuild Status

This is a unit test framework for java 8. Please check the site for more information.

package org.powerunit.examples;

import java.util.Arrays;
import java.util.stream.Stream;

import org.powerunit.Parameter;
import org.powerunit.Parameters;
import org.powerunit.Test;
import org.powerunit.TestSuite;

public class HelloWorldParameterTest implements TestSuite {
  @Parameters("Input string is {0}, subString idx is {1}, expected result is {2}")
  public static Stream<Object[]> getDatas() {
    return Arrays.stream(new Object[][] { { "ab", 0, "ab" }, { "ab", 1, "b" } });
  }

  @Parameter(0)
  public String inputString;

  @Parameter(1)
  public int inputIndex;

  @Parameter(2)
  public String expectedString;

  @Test
  public void testSubString() {
    assertThat(inputString.substring(inputIndex)).is(expectedString);
  }
}
ch.powerunit

Versions

Version
0.5.0
0.4.0
0.3.0
0.2.0
0.1.1
0.1.0
0.0.1