@Test public void testToDateTimeFailsIfInvalidRepositoryId() { assertThrow(IllegalArgumentException.class, new Runnable() { @Override public void run() { SpaceRepository.toDateTime("toto"); } }); }
public static DateTime toDateTime(String repositoryId) { return REPO_ID_FORMATTER.parseDateTime(repositoryId); }
SpaceRepository implements Comparable<SpaceRepository> { public static DateTime toDateTime(String repositoryId) { return REPO_ID_FORMATTER.parseDateTime(repositoryId); } }
SpaceRepository implements Comparable<SpaceRepository> { public static DateTime toDateTime(String repositoryId) { return REPO_ID_FORMATTER.parseDateTime(repositoryId); }  }
SpaceRepository implements Comparable<SpaceRepository> { public static DateTime toDateTime(String repositoryId) { return REPO_ID_FORMATTER.parseDateTime(repositoryId); }  String id(); SpaceRepository withId(String id); String type(); SpaceRepository withType(String type); Map<String, Object> settings(); SpaceRepository withSettings(Map<String, Object> settings); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); @Override // ordered from latest to oldest repository int compareTo(SpaceRepository other); static String currentRepositoryId(); static String toRepositoryId(DateTime date); static DateTime toDateTime(String repositoryId); static String pastRepositoryId(String repositoryId, int weeks); }
SpaceRepository implements Comparable<SpaceRepository> { public static DateTime toDateTime(String repositoryId) { return REPO_ID_FORMATTER.parseDateTime(repositoryId); }  String id(); SpaceRepository withId(String id); String type(); SpaceRepository withType(String type); Map<String, Object> settings(); SpaceRepository withSettings(Map<String, Object> settings); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); @Override // ordered from latest to oldest repository int compareTo(SpaceRepository other); static String currentRepositoryId(); static String toRepositoryId(DateTime date); static DateTime toDateTime(String repositoryId); static String pastRepositoryId(String repositoryId, int weeks);  }