@Test public void testSetMinPriority() { plain.setMinPriority("High"); Assert.assertTrue(plain.getMinPriority().equals("High")); Assert.assertTrue(plain.getMinPriorityAsInt() == Priorities.HIGH_PRIORITY); plain.setMinPriority("Medium"); Assert.assertTrue(plain.getMinPriority().equals("Medium")); Assert.assertTrue(plain.getMinPriorityAsInt() == Priorities.NORMAL_PRIORITY); plain.setMinPriority("Low"); Assert.assertTrue(plain.getMinPriority().equals("Low")); Assert.assertTrue(plain.getMinPriorityAsInt() == Priorities.LOW_PRIORITY); }
public void setMinPriority(String minPriority) { this.minPriority = minPriority; Integer value = priorityNameToValueMap.get(minPriority); if (value == null) { value = priorityNameToValueMap.get(DEFAULT_PRIORITY); if (value == null) { throw new IllegalStateException(); } } this.minPriorityAsInt = value.intValue(); }
ProjectFilterSettings implements Cloneable { public void setMinPriority(String minPriority) { this.minPriority = minPriority; Integer value = priorityNameToValueMap.get(minPriority); if (value == null) { value = priorityNameToValueMap.get(DEFAULT_PRIORITY); if (value == null) { throw new IllegalStateException(); } } this.minPriorityAsInt = value.intValue(); } }
ProjectFilterSettings implements Cloneable { public void setMinPriority(String minPriority) { this.minPriority = minPriority; Integer value = priorityNameToValueMap.get(minPriority); if (value == null) { value = priorityNameToValueMap.get(DEFAULT_PRIORITY); if (value == null) { throw new IllegalStateException(); } } this.minPriorityAsInt = value.intValue(); } private  ProjectFilterSettings(); }
ProjectFilterSettings implements Cloneable { public void setMinPriority(String minPriority) { this.minPriority = minPriority; Integer value = priorityNameToValueMap.get(minPriority); if (value == null) { value = priorityNameToValueMap.get(DEFAULT_PRIORITY); if (value == null) { throw new IllegalStateException(); } } this.minPriorityAsInt = value.intValue(); } private  ProjectFilterSettings(); void setMinRank(int minRank); int getMinRank(); static ProjectFilterSettings createDefault(); static ProjectFilterSettings fromEncodedString(String s); static void hiddenFromEncodedString(ProjectFilterSettings result, String s); boolean displayWarning(BugInstance bugInstance); void setMinPriority(String minPriority); String getMinPriority(); int getMinPriorityAsInt(); void addCategory(String category); void removeCategory(String category); void clearAllCategories(); boolean containsCategory(String category); Set<String> getActiveCategorySet(); void setDisplayFalseWarnings(boolean displayFalseWarnings); boolean displayFalseWarnings(); String hiddenToEncodedString(); String toEncodedString(); @Override String toString(); @Override boolean equals(Object obj); @Override Object clone(); @Override int hashCode(); static String getIntPriorityAsString(int prio); }
ProjectFilterSettings implements Cloneable { public void setMinPriority(String minPriority) { this.minPriority = minPriority; Integer value = priorityNameToValueMap.get(minPriority); if (value == null) { value = priorityNameToValueMap.get(DEFAULT_PRIORITY); if (value == null) { throw new IllegalStateException(); } } this.minPriorityAsInt = value.intValue(); } private  ProjectFilterSettings(); void setMinRank(int minRank); int getMinRank(); static ProjectFilterSettings createDefault(); static ProjectFilterSettings fromEncodedString(String s); static void hiddenFromEncodedString(ProjectFilterSettings result, String s); boolean displayWarning(BugInstance bugInstance); void setMinPriority(String minPriority); String getMinPriority(); int getMinPriorityAsInt(); void addCategory(String category); void removeCategory(String category); void clearAllCategories(); boolean containsCategory(String category); Set<String> getActiveCategorySet(); void setDisplayFalseWarnings(boolean displayFalseWarnings); boolean displayFalseWarnings(); String hiddenToEncodedString(); String toEncodedString(); @Override String toString(); @Override boolean equals(Object obj); @Override Object clone(); @Override int hashCode(); static String getIntPriorityAsString(int prio); static final String HIGH_PRIORITY; static final String MEDIUM_PRIORITY; static final String LOW_PRIORITY; static final String EXPERIMENTAL_PRIORITY; static final String DEFAULT_PRIORITY; }