MyInteger { public boolean isPrime() { return isPrimeInternal(this.value); } MyInteger(int value); int get(); boolean isEven(); boolean isOdd(); boolean isPrime(); static boolean isEven(int v); static boolean isOdd(int v); static boolean isPrime(int v); static boolean isEven(MyInteger v); static boolean isOdd(MyInteger v); static boolean isPrime(MyInteger v); @Override boolean equals(Object o); boolean equals(int v); boolean equals(MyInteger v); static int parseInt(char[] c); static int parseInt(String c); @Override String toString();  }
@Test @DisplayName("测试isPrime()普通成员函数") void testIsPrimeVoid() { for (MyInteger mi : miPrime) { assertTrue(mi.isPrime()); } }
@Test @DisplayName("测试isPrime(int)静态成员函数") void testIsPrimeInt() { for (int p : prime) { assertTrue(MyInteger.isPrime(p)); } }
@Test @DisplayName("测试isPrime(MyInteger)静态成员函数") void testIsPrimeMI(){ for(MyInteger mi: miPrime){ assertTrue(MyInteger.isPrime(mi)); } }