From 49738e4588f119135b6e1d8c692f3bec752562b3 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Thu, 6 Mar 2014 15:13:34 -0600 Subject: [PATCH] SEC-2508: Passivity test for SEC-2357 --- .../security/config/Sec2508Tests.java | 34 +++++++++++++++++++ .../security/config/sec-2508.xml | 24 +++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 config/src/test/java/org/springframework/security/config/Sec2508Tests.java create mode 100644 config/src/test/resources/org/springframework/security/config/sec-2508.xml diff --git a/config/src/test/java/org/springframework/security/config/Sec2508Tests.java b/config/src/test/java/org/springframework/security/config/Sec2508Tests.java new file mode 100644 index 0000000000..664134bf30 --- /dev/null +++ b/config/src/test/java/org/springframework/security/config/Sec2508Tests.java @@ -0,0 +1,34 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.springframework.security.config; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.web.AuthenticationEntryPoint; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; + +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration("classpath:org/springframework/security/config/sec-2508.xml" ) +public class Sec2508Tests { + + @Autowired + private AuthenticationEntryPoint ep; + + @Test + public void loads() {} +} diff --git a/config/src/test/resources/org/springframework/security/config/sec-2508.xml b/config/src/test/resources/org/springframework/security/config/sec-2508.xml new file mode 100644 index 0000000000..e5f3f5dbf8 --- /dev/null +++ b/config/src/test/resources/org/springframework/security/config/sec-2508.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + +