Property implements Serializable { public String getName() { return name; } Property(String name); String getName(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final Property REVISION; static final Property HAS_PROPS; static final Property HAS_PROP_MODS; static final Property CACHABLE_PROPS; static final Property PRESENT_PROPS; static final Property KEEP_LOCAL; static final Property CHANGELIST; static final Property CHECKSUM; static final Property WORKING_SIZE; static final Property DEPTH; static final Property FILE_EXTERNAL_PATH; static final Property FILE_EXTERNAL_REVISION; static final Property FILE_EXTERNAL_PEG_REVISION; static final Property TREE_CONFLICT_DATA; static final Property URL; static final Property COPYFROM_URL; static final Property COPYFROM_REVISION; static final Property SCHEDULE; static final Property COPIED; static final Property UUID; static final Property REPOS; static final Property PROP_TIME; static final Property EXT_TIME; static final Property NAME; static final Property KIND; static final Property CONFLICT_OLD; static final Property CONFLICT_NEW; static final Property CONFLICT_WRK; static final Property PROP_REJECT_FILE; static final Property DELETED; static final Property ABSENT; static final Property INCOMPLETE; static final Property CORRUPTED; static final Property LOCK_TOKEN; static final Property LOCK_COMMENT; static final Property LOCK_OWNER; static final Property LOCK_CREATION_DATE; static final Property LAST_AUTHOR; static final Property COMMITTED_DATE; static final Property COMMITTED_REVISION; static final Property KEYWORDS; static final Property NEEDS_LOCK; static final Property MIME_TYPE; static final Property EOL_STYLE; static final Property IGNORE; static final Property EXECUTABLE; static final Property EXTERNALS; static final Property SPECIAL; static final Property MERGE_INFO; static final Property[] ALL_SVN_ENTRY_PROPERTIES; static final Property[] COMMON_SVN_ENTRY_PROPERTIES; }
@Test public void customProperty() throws Exception { Property p = new Property("jesper:test Yo!"); assertEquals("jesper:test Yo!", p.getName()); }
@Test public void predefinedProperty() throws Exception { assertEquals("svn:mime-type", Property.MIME_TYPE.getName()); assertEquals("svn:entry:checksum", Property.CHECKSUM.getName()); assertEquals("svn:entry:last-author", Property.LAST_AUTHOR.getName()); assertEquals("svn:entry:committed-date", Property.COMMITTED_DATE.getName()); assertEquals("svn:entry:committed-rev", Property.COMMITTED_REVISION.getName()); }