PropInfo { public boolean isUnknownMultiple() { return multipleStatus == MultipleStatus.UNKNOWN; } PropInfo(@Nullable String name, int type, @NotNull TextValue value);  PropInfo(@Nullable String name, int type, @NotNull List<? extends TextValue> values);  PropInfo(@Nullable String name, int type,
                    @NotNull List<? extends TextValue> values,
                    @NotNull MultipleStatus multipleStatus); void dispose(); int getTargetType(PropertyDefinition def); @Nullable String getName(); int getType(); boolean isUnknownMultiple(); @NotNull TextValue getTextValue(); @NotNull List<? extends TextValue> getTextValues(); @NotNull Value getValue(int targetType); @NotNull List<Value> getValues(int targetType); PropertyState asPropertyState(@NotNull PropertyDefinition propertyDefinition);  }
@Test public void testIsUnknownMultiple() throws Exception { PropInfo propInfo = new PropInfo("boolean", PropertyType.BOOLEAN, ImmutableList.of(mockTextValue("false", PropertyType.BOOLEAN)), PropInfo.MultipleStatus.UNKNOWN); assertTrue(propInfo.isUnknownMultiple()); propInfo = new PropInfo("boolean", PropertyType.BOOLEAN, ImmutableList.of(mockTextValue("false", PropertyType.BOOLEAN)), PropInfo.MultipleStatus.MULTIPLE); assertFalse(propInfo.isUnknownMultiple()); }
@Test public void testIsUnknownMultipleSingle() throws Exception { PropInfo propInfo = new PropInfo("long", PropertyType.LONG, mockTextValue("24", PropertyType.LONG)); assertTrue(propInfo.isUnknownMultiple()); }
@Test public void testIsUnknownMultipleSingleList() throws Exception { PropInfo propInfo = new PropInfo("long", PropertyType.LONG, ImmutableList.of(mockTextValue("24", PropertyType.LONG))); assertTrue(propInfo.isUnknownMultiple()); }
@Test public void testIsUnknownMultipleSingleList2() throws Exception { PropInfo propInfo = new PropInfo("long", PropertyType.LONG, ImmutableList.of(mockTextValue("24", PropertyType.LONG)), PropInfo.MultipleStatus.MULTIPLE); assertFalse(propInfo.isUnknownMultiple()); }
@Test public void testIsUnknownMultipleEmpty() { PropInfo propInfo = new PropInfo("longs", PropertyType.LONG, ImmutableList.of()); assertFalse(propInfo.isUnknownMultiple()); }
@Test public void testIsUnknownMultipleMultiple() throws Exception { PropInfo propInfo = new PropInfo("longs", PropertyType.LONG, ImmutableList.of(mockTextValue("24", PropertyType.LONG), mockTextValue("44", PropertyType.LONG))); assertFalse(propInfo.isUnknownMultiple()); }