Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated for standard resolution

  • Loading branch information...
commit de91f96cf46fbcd77222bc997969983d203988a7 1 parent 55ef723
@sbrannen sbrannen authored
View
14 showoff.css
@@ -1,26 +1,26 @@
#preso, .slide {
/*
+ width: 1280px;
+ height: 720px;
+*/
width: 1024px;
height: 768px;
-*/
-width: 1280px;
-height: 720px;
}
.slide .center {
/*
+ width: 1280px;
+ height: 720px;
+*/
width: 1024px;
height: 768px;
-*/
-width: 1280px;
-height: 720px;
}
#footer {
/*
+ width: 1270px;
width: 1024px;
*/
-width: 1270px;
}
.subsection h1 {
View
23 tcf-context-hierarchies/slides.md
@@ -12,13 +12,13 @@
* Currently only flat, non-hierarchical<br />contexts are supported.
!SLIDE bullets center
-* There is no easy way to create contexts<br />with parent-child relationships.
+* There is no easy way to create contexts with parent-child relationships.
!SLIDE bullets center
-* But hierarchies are supported in production.
+* But hierarchies are supported<br />in production.
!SLIDE bullets center
-* So it would be nice to be able to test them. ;)
+* So it would be nice to be able<br />to test them. ;)
!SLIDE incremental small
# Context Hierarchy Goals
@@ -66,16 +66,19 @@
@@@ java
@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
- @ContextConfiguration("file:src/main/webapp/WEB-INF/applicationContext.xml")
- public abstract class AbstractWebTests {}
+ @ContextConfiguration(
+ "file:src/main/webapp/WEB-INF/applicationContext.xml")
+ public abstract class AbstractWebTests{}
- @ContextHierarchy(@ContextConfiguration("/spring/soap-ws-config.xml")
- public class SoapWebServiceTests extends AbstractWebTests {}
+ @ContextHierarchy(
+ @ContextConfiguration("/spring/soap-ws-config.xml")
+ public class SoapWebServiceTests extends AbstractWebTests{}
- @ContextHierarchy(@ContextConfiguration("/spring/rest-ws-config.xml")
- public class RestWebServiceTests extends AbstractWebTests {}
+ @ContextHierarchy(
+ @ContextConfiguration("/spring/rest-ws-config.xml")
+ public class RestWebServiceTests extends AbstractWebTests{}
-!SLIDE incremental
+!SLIDE incremental small
# Feedback is Welcome
* [SPR-5613](https://jira.springsource.org/browse/SPR-5613): context hierarchy support
* [SPR-9863](https://jira.springsource.org/browse/SPR-9683): web context hierarchy support
View
14 tcf-context-initializers/slides.md
@@ -35,9 +35,11 @@
@@@ java
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(
- locations = "/app-config.xml",
- initializers =
- {PropertySourceInitializer.class, ProfileInitializer.class})
+ locations = "/app-config.xml",
+ initializers = {
+ PropertySourceInitializer.class,
+ ProfileInitializer.class
+ })
public class ApplicationContextInitializerTests {}
!SLIDE smaller
@@ -72,7 +74,9 @@
public class ExtendedTest extends BaseTest {}
!SLIDE smaller
-# Example: Initializer w/o Locations or Classes
+# Example: Initializer w/o Resources
@@@ java
- @ContextConfiguration(initializers = EntireAppInitializer.class)
+ // does not declare 'locations' or 'classes'
+ @ContextConfiguration(
+ initializers = EntireAppInitializer.class)
public class InitializerWithoutConfigFilesOrClassesTest {}
View
10 tcf-overview/slides.md
@@ -335,12 +335,12 @@
@@@ xml
<beans ...>
- <!-- OrderService is autowired with OrderRepository -->
- <context:component-scan base-package="com.example"/>
+ <!-- OrderService is autowired with OrderRepository -->
+ <context:component-scan base-package="com.example"/>
- <bean id="orderRepository" class="org.easymock.EasyMock"
- factory-method="createMock"
- c:_="com.example.repository.OrderRepository" />
+ <bean id="orderRepository" class="org.easymock.EasyMock"
+ factory-method="createMock"
+ c:_="com.example.repository.OrderRepository" />
</beans>
View
67 tcf-web-support/slides.md
@@ -10,7 +10,7 @@
# Loading a `WebApplicationContext`
!SLIDE bullets center
-* How do you tell the TestContext framework<br> to load a `WebApplicationContext`?
+* How do you tell the TestContext framework to load a `WebApplicationContext`?
!SLIDE bullets center
* Just annotate your test class with ...
@@ -144,15 +144,16 @@
@@@ xml
<beans ...>
- <bean id="userService" class="com.example.SimpleUserService"
- c:loginAction-ref="loginAction" />
-
- <bean id="loginAction" class="com.example.LoginAction"
- c:username="#{request.getParameter('user')}"
- c:password="#{request.getParameter('pswd')}"
- scope="request">
- <aop:scoped-proxy />
- </bean>
+ <bean id="userService"
+ class="com.example.SimpleUserService"
+ c:loginAction-ref="loginAction" />
+
+ <bean id="loginAction" class="com.example.LoginAction"
+ c:username="#{request.getParameter('user')}"
+ c:password="#{request.getParameter('pswd')}"
+ scope="request">
+ <aop:scoped-proxy />
+ </bean>
</beans>
@@ -184,15 +185,17 @@
@@@ xml
<beans ...>
- <bean id="userService" class="com.example.SimpleUserService"
- c:userPreferences-ref="userPreferences" />
-
- <bean id="userPreferences" class="com.example.UserPreferences"
- c:theme="#{session.getAttribute('theme')}"
- scope="session">
- <aop:scoped-proxy />
- </bean>
-
+ <bean id="userService"
+ class="com.example.SimpleUserService"
+ c:userPreferences-ref="userPreferences" />
+
+ <bean id="userPreferences"
+ class="com.example.UserPreferences"
+ c:theme="#{session.getAttribute('theme')}"
+ scope="session">
+ <aop:scoped-proxy />
+ </bean>
+
</beans>
!SLIDE smaller
@@ -202,18 +205,18 @@
@ContextConfiguration
@WebAppConfiguration
public class SessionScopedBeanTests {
-
- @Autowired UserService userService;
- @Autowired MockHttpSession session;
-
- @Test
- public void sessionScope() throws Exception {
-
- session.setAttribute("theme", "blue");
-
- Results results = userService.processUserPreferences();
-
- // assert results
- }
+
+ @Autowired UserService userService;
+ @Autowired MockHttpSession session;
+
+ @Test
+ public void sessionScope() throws Exception {
+
+ session.setAttribute("theme", "blue");
+
+ Results results = userService.processUserPreferences();
+
+ // assert results
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.