use of org.jabref.model.groups.AutomaticGroup in project jabref by JabRef.
the class GroupSerializerTest method serializeSingleAutomaticKeywordGroup.
@Test
public void serializeSingleAutomaticKeywordGroup() {
AutomaticGroup group = new AutomaticKeywordGroup("myAutomaticGroup", GroupHierarchyType.INDEPENDENT, "keywords", ',', '>');
List<String> serialization = groupSerializer.serializeTree(GroupTreeNode.fromGroup(group));
assertEquals(Collections.singletonList("0 AutomaticKeywordGroup:myAutomaticGroup;0;keywords;,;>;1;;;;"), serialization);
}
use of org.jabref.model.groups.AutomaticGroup in project jabref by JabRef.
the class GroupsParserTest method fromStringParsesAutomaticKeywordGroup.
@Test
public void fromStringParsesAutomaticKeywordGroup() throws Exception {
AutomaticGroup expected = new AutomaticKeywordGroup("myAutomaticGroup", GroupHierarchyType.INDEPENDENT, "keywords", ',', '>');
AbstractGroup parsed = GroupsParser.fromString("AutomaticKeywordGroup:myAutomaticGroup;0;keywords;,;>;1;;;;", ',');
assertEquals(expected, parsed);
}
Aggregations