0
0

import org.junit.Test;

import java.lang.Object;

import static junit.framework.TestCase.assertEquals;

//import static org.junit.Assert.*;

public class CalculatorTest {


@Test
public void add() {
Calculator calc=new Calculator();
int expected=15;
int result= calc.add(10,5);
assertEquals(expected,result);
}
}

Выдает ошибку:

Execution failed for task ':test'.
> No tests found for given includes: [CalculatorTest](filter.includeTestsMatching)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Класс Calculator

public class Calculator {
public int add(int a,int b){
return a+b;

}
}


Евгений
2 years ago






Еще нет ответов