CS计算机代考程序代写 Java junit import static org.junit.Assert.assertEquals;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

/**
*
* You are given the java class called PathComplete, which has a method
* called findSomething. Implement the minimum number of JUnit test cases to achieve
* path complete to the findSomething method. Write your test case(s) in the test() method
* in the PathCompleteTest.java file. All test cases should pass the JUnit test. You are not
* allowed to alter the signatures of the given methods and the package
* structures of the given classes. Please upload ONLY the PathCompleteTest.java file to
* Wattle for marking.
*
*/
public class PathCompleteTest {

@Test
public void test() {
assertEquals(10, PathComplete.findSomething(10, 4, 2));
assertEquals(9,PathComplete.findSomething(5, 4, 9));
assertEquals(4,PathComplete.findSomething(2, 4, 1));
assertEquals(11,PathComplete.findSomething(2, 4, 11));
}
}