Added an option to deduplicate bindings in favor of Spring

User can set Environment property spring.guice.dedup=true.
This commit is contained in:
Taylor Wicksell
2018-02-28 14:19:48 -06:00
committed by Dave Syer
parent e94c94837f
commit a098f7854b
7 changed files with 251 additions and 61 deletions

View File

@@ -0,0 +1,36 @@
/*
* Copyright 2012-2015 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.guice;
import org.junit.Ignore;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import org.springframework.guice.annotation.EnableGuiceModulesTests;
/**
* A test suite for probing weird ordering problems in the tests.
*
* @author Dave Syer
*/
@RunWith(Suite.class)
@SuiteClasses({ BindingDeduplicationTests.class, EnableGuiceModulesTests.class })
@Ignore
public class AdhocTestSuite {
}