forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrading Spring to version 4.1.8 required - Quartz 2.2.1 upgrade - All xml files were updated to the modern XSD beans definition - Many Tests were updated to using the newer ContextConfiguration - Annotation as the old AbstractDependencyInjectionSpringContextTests was removed and tests are now run with AbstractJUnit4SpringContextTests. - Hibernate 3.6 is still supported in spring 4.1 but not in spring 4.2 - HibernateTemplate's *All methods were removed - HibernateTemplate.find* needs explicit cast to List<?> - All Kernel tests were updated to the junit 4 style, and many others elsewhere - Kernel test harness was removed as it's not needed - ContextLoaderListener had some minor changes and was renamed to SakaiContextLoaderListener (This is what binds sakai component application context to webapps) - GenericDAO lib was added to common and also upgraded to spring 4.1 - RSF was also upgraded to spring 4.1, see RSF-16
- Loading branch information
Showing
455 changed files
with
6,147 additions
and
8,316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
announcement/announcement-tool/tool/src/webapp/WEB-INF/applicationContext.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> | ||
|
||
<beans> | ||
|
||
|
||
|
||
<!-- <bean id="org.sakaiproject.importer.impl.handlers.AnnouncementHandler" --> | ||
<!-- class="org.sakaiproject.importer.impl.handlers.AnnouncementHandler" --> | ||
<!-- singleton="true"> --> | ||
<!-- <property name="announcementService"> --> | ||
<!-- <ref bean="org.sakaiproject.announcement.api.AnnouncementService" /> --> | ||
<!-- </property> --> | ||
<!-- </bean> --> | ||
<!-- <bean id="org.sakaiproject.importer.impl.handlers.SamigoAssessmentHandler" --> | ||
<!-- class="org.sakaiproject.importer.impl.handlers.SamigoAssessmentHandler" --> | ||
<!-- singleton="true"> --> | ||
<!-- </bean> --> | ||
<!-- --> | ||
<!-- <bean id="org.sakaiproject.importer.impl.handlers.SamigoPoolHandler" --> | ||
<!-- class="org.sakaiproject.importer.impl.handlers.SamigoPoolHandler" --> | ||
<!-- singleton="true"> --> | ||
<!-- </bean> --> | ||
|
||
|
||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> | ||
|
||
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
assignment/assignment-tool/tool/src/webapp/WEB-INF/applicationContext.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
basiclti/basiclti-blis/src/webapp/WEB-INF/applicationContext.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
basiclti/basiclti-portlet/src/webapp/WEB-INF/applicationContext.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 16 additions & 10 deletions
26
calendar/calendar-impl/impl/src/test/org/sakaiproject/calendar/impl/IntegrationTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,38 @@ | ||
package org.sakaiproject.calendar.impl; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
import org.sakaiproject.calendar.api.ExternalSubscription; | ||
import org.springframework.test.AbstractDependencyInjectionSpringContextTests; | ||
import org.sakaiproject.calendar.impl.BaseExternalSubscription; | ||
import org.sakaiproject.calendar.impl.SubscriptionCache; | ||
import org.springframework.test.context.ContextConfiguration; | ||
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests; | ||
|
||
public class IntegrationTests extends AbstractDependencyInjectionSpringContextTests { | ||
@ContextConfiguration(locations={"/calendar-caches.xml", "/test-resources.xml"}) | ||
public class IntegrationTests extends AbstractJUnit4SpringContextTests { | ||
|
||
private SubscriptionCache cache; | ||
|
||
protected String[] getConfigPaths() { | ||
return new String[]{"/calendar-caches.xml", "/test-resources.xml"}; | ||
} | ||
|
||
protected void onSetUp() { | ||
cache = (SubscriptionCache) getApplicationContext().getBean("org.sakaiproject.calendar.impl.BaseExternalCacheSubscriptionService.institutionalCache"); | ||
@Before | ||
public void onSetUp() { | ||
cache = (SubscriptionCache) applicationContext.getBean("org.sakaiproject.calendar.impl.BaseExternalCacheSubscriptionService.institutionalCache"); | ||
} | ||
|
||
@Test | ||
public void testNothing() { | ||
assertNull(cache.get("not-in-cache")); | ||
Assert.assertNull(cache.get("not-in-cache")); | ||
} | ||
|
||
@Test | ||
public void testCacheRoundtrip() throws InterruptedException { | ||
ExternalSubscription subscription = new BaseExternalSubscription(); | ||
subscription.setSubscriptionUrl("http://example.com"); | ||
subscription.setSubscriptionName("Example"); | ||
subscription.setContext("context"); | ||
subscription.setInstitutional(false); | ||
cache.put(subscription); | ||
assertEquals(subscription, cache.get("http://example.com")); | ||
Assert.assertEquals(subscription, cache.get("http://example.com")); | ||
} | ||
|
||
} |
5 changes: 3 additions & 2 deletions
5
calendar/calendar-impl/impl/src/test/resources/test-resources.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.