BVB Source Codes

spring-security-oauth Show ApplicationConfigurationTests.java Source code

Return Download spring-security-oauth: download ApplicationConfigurationTests.java Source code - Download spring-security-oauth Source code - Type:.java
  1. /*
  2.  * Copyright 2002-2013 the original author or authors.
  3.  *
  4.  * Licensed under the Apache License, Version 2.0 (the "License");
  5.  * you may not use this file except in compliance with the License.
  6.  * You may obtain a copy of the License at
  7.  *
  8.  *      http://www.apache.org/licenses/LICENSE-2.0
  9.  *
  10.  * Unless required by applicable law or agreed to in writing, software
  11.  * distributed under the License is distributed on an "AS IS" BASIS,
  12.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13.  * See the License for the specific language governing permissions and
  14.  * limitations under the License.
  15.  */
  16. package org.springframework.security.samples.config;
  17.  
  18. import static org.junit.Assert.assertNotNull;
  19.  
  20. import org.junit.Test;
  21. import org.junit.runner.RunWith;
  22. import org.springframework.beans.factory.annotation.Autowired;
  23. import org.springframework.context.annotation.ComponentScan;
  24. import org.springframework.context.annotation.Configuration;
  25. import org.springframework.security.oauth.examples.sparklr.config.SecurityConfiguration;
  26. import org.springframework.security.oauth2.provider.endpoint.AuthorizationEndpoint;
  27. import org.springframework.security.web.FilterChainProxy;
  28. import org.springframework.test.context.ContextConfiguration;
  29. import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
  30. import org.springframework.test.context.web.WebAppConfiguration;
  31.  
  32. /**
  33.  * @author Rob Winch
  34.  *
  35.  */
  36. @RunWith(SpringJUnit4ClassRunner.class)
  37. @ContextConfiguration
  38. @WebAppConfiguration
  39. public class ApplicationConfigurationTests {
  40.  
  41.     @Configuration
  42.     @ComponentScan(basePackageClasses = SecurityConfiguration.class)
  43.     public static class Config {}
  44.  
  45.     @Autowired
  46.     private FilterChainProxy springSecurityFilterChain;
  47.  
  48.     @Autowired
  49.     private AuthorizationEndpoint endpoint;
  50.  
  51.     @Test
  52.     public void securityConfigurationLoads() {
  53.         assertNotNull(endpoint);
  54.     }
  55. }
  56.  
downloadApplicationConfigurationTests.java Source code - Download spring-security-oauth Source code
Related Source Codes/Software:
Toucan - Fabulous Image Processing in Swift 2017-04-23
CoffeeScriptRedux - 2017-04-23
breakpoint - Really simple media queries in Sa 2017-04-23
libsvm - 2017-04-22
grr - GRR Rapid Response: remote live forensics for inci... 2017-04-22
rouge - A pure-ruby code highlighter that is compatible wi... 2017-04-23
sphinx_rtd_theme - Sphinx theme for readthedocs.org 2017-04-23
BlurEffectForAndroidDesign - Sample to show how to implement blur graphical tri... 2017-04-23
mama2 - Mother plan - all firewood high flame 2017-04-23
JKeyboardPanelSwitch - For resolve the layout conflict when keybord & amp... 2017-04-23
react-music - Make beats with React! http... 2017-04-30
java-code-styles - IntelliJ IDEA code style settings for Square's Jav... 2017-04-30
swing - A swipeable cards interface. The swipe-left/swipe-... 2017-04-30
qTip2 - qTip2 - Pretty powerful tooltips ... 2017-04-30
jo - JSON output from a shell 2017-04-30
Fluidbox - Replicating and improving the lightbox module seen... 2017-04-30
boto3 - AWS SDK for Python http://a... 2017-04-30
PreloadJS - PreloadJS makes preloading assets & getting ag... 2017-04-29
gotraining - Go Training Class Material : ... 2017-04-29
eigen - The Art World in Your Pocket or Your Trendy Tech C... 2017-04-29

 Back to top