@Test public void returnsEmptyStringWhenNoBitratesSet() { XMLParser parser = new XMLParser(null, null, null, false, false); assertThat(parser.calculateBitrate(), is(equalTo(""))); }
protected String calculateBitrate() { if (thirtyTwoBit && sixtyFourBit) { return "[@thirtytwobit='true' or @sixtyfourbit='true']"; } else if (thirtyTwoBit) { return "[@thirtytwobit='true']"; } else if (sixtyFourBit) { return "[@sixtyfourbit='true']"; } return ""; }
XMLParser { protected String calculateBitrate() { if (thirtyTwoBit && sixtyFourBit) { return "[@thirtytwobit='true' or @sixtyfourbit='true']"; } else if (thirtyTwoBit) { return "[@thirtytwobit='true']"; } else if (sixtyFourBit) { return "[@sixtyfourbit='true']"; } return ""; } }
XMLParser { protected String calculateBitrate() { if (thirtyTwoBit && sixtyFourBit) { return "[@thirtytwobit='true' or @sixtyfourbit='true']"; } else if (thirtyTwoBit) { return "[@thirtytwobit='true']"; } else if (sixtyFourBit) { return "[@sixtyfourbit='true']"; } return ""; } XMLParser(InputStream repositoryMap, Set<OperatingSystem> operatingSystems, Map<String, String> driverVersions, boolean thirtyTwoBit, boolean sixtyFourBit); }
XMLParser { protected String calculateBitrate() { if (thirtyTwoBit && sixtyFourBit) { return "[@thirtytwobit='true' or @sixtyfourbit='true']"; } else if (thirtyTwoBit) { return "[@thirtytwobit='true']"; } else if (sixtyFourBit) { return "[@sixtyfourbit='true']"; } return ""; } XMLParser(InputStream repositoryMap, Set<OperatingSystem> operatingSystems, Map<String, String> driverVersions, boolean thirtyTwoBit, boolean sixtyFourBit); NodeList getAllNodesInScope(); }
XMLParser { protected String calculateBitrate() { if (thirtyTwoBit && sixtyFourBit) { return "[@thirtytwobit='true' or @sixtyfourbit='true']"; } else if (thirtyTwoBit) { return "[@thirtytwobit='true']"; } else if (sixtyFourBit) { return "[@sixtyfourbit='true']"; } return ""; } XMLParser(InputStream repositoryMap, Set<OperatingSystem> operatingSystems, Map<String, String> driverVersions, boolean thirtyTwoBit, boolean sixtyFourBit); NodeList getAllNodesInScope();  }