Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 7th, 2020 126 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     private CarMovementDecisionMaker sut = new CarMovementDecisionMaker();
  2.  
  3.     private boolean str2bool(String str) {
  4.         switch(str) {
  5.             case "0": return false;
  6.             case "1": return true;
  7.         }
  8.         throw new IllegalArgumentException(str);
  9.     }
  10.  
  11.     private Ternar str2ternar(String str) {
  12.         switch(str) {
  13.             case "0": return Ternar.OFF;
  14.             case "1": return Ternar.ON;
  15.             case "2": return Ternar.BLINKING;
  16.         }
  17.         throw new IllegalArgumentException(str);
  18.     }
  19.  
  20.     @Test
  21.     @FileParameters(value = "classpath:decision_rules.csv",
  22.             mapper = CsvWithHeaderMapper.class)
  23.     public void testDecisions(String name,
  24.                               String red, String yellow, String green,
  25.                               String go, String withCaution, String bePrepared) {
  26.         sut.setTrafficLightState();
  27.         assertThat();
  28.         assertThat();
  29.         assertThat();
  30.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top