// testExample.scenarlang
Feature: Testing Example
Scenario: Sum of Two Numbers
Given a variable a with value 2
And a variable b with value 3
When I calculate the sum of a and b
Then the result should be 5
// TestExample.java
public class TestExample {
@Test
public void testSum() {
int a = 2;
int b = 3;
int sum = a + b;
assertEquals(5, sum);
}
}
// build.gradle
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation 'io.github.scenar:scenar-lang-java-utl:1.0.0'
}