Skip to content

Commit

Permalink
SAK-48670 change access and make abstract test classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ern committed May 3, 2023
1 parent 94f22db commit 5d85d39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@
import org.springframework.orm.hibernate5.HibernateTransactionManager;
import org.springframework.orm.hibernate5.LocalSessionFactoryBuilder;

public class SakaiTestConfiguration {
public abstract class SakaiTestConfiguration {

@Autowired
private Environment environment;
@Autowired protected Environment environment;

protected AdditionalHibernateMappings getAdditionalHibernateMappings() { return null; };
protected abstract AdditionalHibernateMappings getAdditionalHibernateMappings();

@Bean(name = "org.sakaiproject.springframework.orm.hibernate.GlobalSessionFactory")
public SessionFactory sessionFactory() throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
import org.junit.Before;

@Slf4j
public class SakaiTests extends AbstractTransactionalJUnit4SpringContextTests {
public abstract class SakaiTests extends AbstractTransactionalJUnit4SpringContextTests {

@Autowired public AuthzGroupService authzGroupService;
@Autowired public UserDirectoryService userDirectoryService;
@Autowired public SiteService siteService;
@Autowired protected AuthzGroupService authzGroupService;
@Autowired protected UserDirectoryService userDirectoryService;
@Autowired protected SiteService siteService;

public String instructor = "instructor";
public User instructorUser = null;
Expand Down

0 comments on commit 5d85d39

Please sign in to comment.