Esempio n. 1
0
 @Test
 public void testGetWizardMultiPosition() {
   Player p = beanFactory.createPlayer().as();
   p.setWizard1B("1");
   p.setWizard2B("2");
   Assert.assertEquals("2.0", PlayerColumn.getWizard(p, EnumSet.of(FB, SB, TB)));
 }
Esempio n. 2
0
 @Test
 public void testGetWizardAllPositions() {
   Player p = beanFactory.createPlayer().as();
   p.setWizard1B("1");
   p.setWizard2B("2");
   p.setWizard3B("3");
   p.setWizardSS("4");
   p.setWizardC("5");
   p.setWizardDH("6");
   p.setWizardOF("7");
   Assert.assertEquals("7.0", PlayerColumn.getWizard(p, EnumSet.noneOf(Position.class)));
 }
Esempio n. 3
0
 @Test
 public void testGetWizardSinglePosition() {
   Player p = beanFactory.createPlayer().as();
   p.setWizardP("1");
   Assert.assertEquals("1.0", PlayerColumn.getWizard(p, EnumSet.of(P)));
 }