File tree Expand file tree Collapse file tree
main/java/io/github/project516/NumberGuessingGame
project516/NumberGuessingGame Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ compileJava.dependsOn spotlessApply
6262
6363spotless {
6464 java {
65- googleJavaFormat(' 1.17 .0' ). aosp()
65+ googleJavaFormat(' 1.28 .0' ). aosp()
6666 target ' src/**/*.java'
6767 removeUnusedImports()
6868 }
Original file line number Diff line number Diff line change 1+ package io .github .project516 .NumberGuessingGame ;
2+
3+ import java .util .*;
4+
5+ class RandomNumber {
6+ Random random = new Random ();
7+
8+ int number () {
9+ return random .nextInt (100 );
10+ }
11+ }
Original file line number Diff line number Diff line change 1+ package io .github .project516 .NumberGuessingGame ;
2+
3+ import static org .junit .jupiter .api .Assertions .*;
4+
5+ import org .junit .jupiter .api .Test ;
6+
7+ class RandomNumberTest {
8+ @ Test
9+ void ranNum () {
10+ RandomNumber classUnderTest = new RandomNumber ();
11+ assertNotNull (classUnderTest .number (), "expect output!" );
12+ }
13+ }
Original file line number Diff line number Diff line change 1- /*
2- * This source file was generated by the Gradle 'init' task
3- */
41package io .github .project516 .NumberGuessingGame ;
52
63import static org .junit .jupiter .api .Assertions .*;
You can’t perform that action at this time.
0 commit comments