Upgraded all Servlet API mocks to Servlet 3.0 (with a little bit of Servlet 3.1 support in MockHttpServletResponse)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,14 +16,13 @@
|
||||
|
||||
package org.springframework.mock.web;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.servlet.RequestDispatcher;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* @author Juergen Hoeller
|
||||
* @author Chris Beams
|
||||
@@ -77,10 +76,11 @@ public class MockServletContextTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void minorVersion() {
|
||||
assertEquals(5, sc.getMinorVersion());
|
||||
sc.setMinorVersion(4);
|
||||
assertEquals(4, sc.getMinorVersion());
|
||||
public void servletVersion() {
|
||||
assertEquals(3, sc.getMajorVersion());
|
||||
assertEquals(0, sc.getMinorVersion());
|
||||
sc.setMinorVersion(1);
|
||||
assertEquals(1, sc.getMinorVersion());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user