@Test @DisplayName("reject unregistered state class") void rejectUnregisteredStateClass() { assertThrows(IllegalStateException.class, () -> guard.repositoryFor(Company.class)); }
Optional<Repository<?, ?>> repositoryFor(Class<? extends EntityState> stateClass) { checkNotNull(stateClass); RepositoryAccess repositoryAccess = findOrThrow(stateClass); return repositoryAccess.get(); }
VisibilityGuard { Optional<Repository<?, ?>> repositoryFor(Class<? extends EntityState> stateClass) { checkNotNull(stateClass); RepositoryAccess repositoryAccess = findOrThrow(stateClass); return repositoryAccess.get(); } }
VisibilityGuard { Optional<Repository<?, ?>> repositoryFor(Class<? extends EntityState> stateClass) { checkNotNull(stateClass); RepositoryAccess repositoryAccess = findOrThrow(stateClass); return repositoryAccess.get(); } private  VisibilityGuard(); }
VisibilityGuard { Optional<Repository<?, ?>> repositoryFor(Class<? extends EntityState> stateClass) { checkNotNull(stateClass); RepositoryAccess repositoryAccess = findOrThrow(stateClass); return repositoryAccess.get(); } private  VisibilityGuard(); Set<TypeName> entityStateTypes(Visibility visibility); }
VisibilityGuard { Optional<Repository<?, ?>> repositoryFor(Class<? extends EntityState> stateClass) { checkNotNull(stateClass); RepositoryAccess repositoryAccess = findOrThrow(stateClass); return repositoryAccess.get(); } private  VisibilityGuard(); Set<TypeName> entityStateTypes(Visibility visibility);  }