@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))); }
@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))); }
@Test public void testGetWizardSinglePosition() { Player p = beanFactory.createPlayer().as(); p.setWizardP("1"); Assert.assertEquals("1.0", PlayerColumn.getWizard(p, EnumSet.of(P))); }