Question: I need a JUnit test for this method only using JUnit 4 public static String DeckList ( ) { Scanner sc = new Scanner (
I need a JUnit test for this method only using JUnit public static String DeckList
Scanner sc new ScannerSystemin;
System.out.printlnPlease enter which deck you'd like to see Rapid Imperial, Hunters, or Gallant: ;
String ListChoice scnextLine;
ifListChoiceequalsRapid ListChoice.equalsrapid
System.out.printlnList;
List "Rapid";
else ifListChoiceequalsImperial ListChoice.equalsimperial
System.out.printlnList;
List "Imperial";
else ifListChoiceequalsHunters ListChoice.equalshunters
System.out.printlnList;
List "Hunters";
else ifListChoiceequalsGallant ListChoice.equalsgallant
System.out.printlnList;
List "Gallant";
else
System.out.printlnInvalid Input. Please restart the program.";
scclose;
return List;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
