mirror of
https://github.com/google/nomulus.git
synced 2025-05-20 11:19:35 +02:00
Remove unnecessary "throws" declarations
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201058582
This commit is contained in:
parent
a7256f5edd
commit
5d80f124ca
377 changed files with 2297 additions and 2373 deletions
|
@ -40,19 +40,19 @@ public class EntityClassesTest {
|
|||
clazz -> clazz.getCanonicalName().substring(clazz.getPackage().getName().length()));
|
||||
|
||||
@Test
|
||||
public void testEntityClasses_inAlphabeticalOrder() throws Exception {
|
||||
public void testEntityClasses_inAlphabeticalOrder() {
|
||||
assertThat(ALL_CLASSES).isStrictlyOrdered(QUALIFIED_CLASS_NAME_ORDERING);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEntityClasses_baseEntitiesHaveUniqueKinds() throws Exception {
|
||||
public void testEntityClasses_baseEntitiesHaveUniqueKinds() {
|
||||
assertThat(ALL_CLASSES.stream().filter(hasAnnotation(Entity.class)).map(Key::getKind))
|
||||
.named("base entity kinds")
|
||||
.containsNoDuplicates();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEntityClasses_entitySubclassesHaveKindsMatchingBaseEntities() throws Exception {
|
||||
public void testEntityClasses_entitySubclassesHaveKindsMatchingBaseEntities() {
|
||||
Set<String> baseEntityKinds =
|
||||
ALL_CLASSES
|
||||
.stream()
|
||||
|
@ -69,7 +69,7 @@ public class EntityClassesTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testEntityClasses_eitherBaseEntityOrEntitySubclass() throws Exception {
|
||||
public void testEntityClasses_eitherBaseEntityOrEntitySubclass() {
|
||||
for (Class<?> clazz : ALL_CLASSES) {
|
||||
boolean isEntityXorEntitySubclass =
|
||||
clazz.isAnnotationPresent(Entity.class) ^ clazz.isAnnotationPresent(EntitySubclass.class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue