X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fadapters%2FClassConfigurationTest.java;h=86e6b077907bebcfa51c21fbaf0ad003d5fa16b6;hb=b55898f1f5b788c9a5fcbb06cd79ffb211aff3de;hp=1271b922cac8aa8406c0a7bc9566faa8e1a638fa;hpb=539c6d91b7a34e32c6669445d00e9275c337530a;p=utils diff --git a/system/general/src/test/java/org/wamblee/system/adapters/ClassConfigurationTest.java b/system/general/src/test/java/org/wamblee/system/adapters/ClassConfigurationTest.java index 1271b922..86e6b077 100644 --- a/system/general/src/test/java/org/wamblee/system/adapters/ClassConfigurationTest.java +++ b/system/general/src/test/java/org/wamblee/system/adapters/ClassConfigurationTest.java @@ -1,30 +1,30 @@ /* - * Copyright 2008 the original author or authors. - * + * Copyright 2005-2010 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.wamblee.system.adapters; +import java.util.Collections; +import java.util.List; + import org.wamblee.system.core.DefaultProvidedInterface; import org.wamblee.system.core.ProvidedInterface; import org.wamblee.system.core.RequiredInterface; import org.wamblee.system.core.RequiredInterfaceComparator; - +import org.wamblee.system.core.Scope; import org.wamblee.test.AssertionUtils; -import java.util.Collections; -import java.util.List; - /** * * @author $author$ @@ -46,11 +46,11 @@ public class ClassConfigurationTest extends AdapterTestCase { required.get(0).setProvider(provided); - scope.publishInterface(provided, "hello"); - classConfig.create(scope); + getScope().publishInterface(provided, "hello"); + classConfig.create(getScope()); AssertionUtils.assertEquals(new String[] { "x1(hello)" }, - AdapterTestCase.EVENT_TRACKER.getEvents(Thread.currentThread()) + AdapterTestCase.getEventTracker().getEvents(Thread.currentThread()) .toArray()); } @@ -74,6 +74,7 @@ public class ClassConfigurationTest extends AdapterTestCase { required.get(0).setProvider(providedBoolean); required.get(1).setProvider(providedHost); + Scope scope = getScope(); scope.publishInterface(providedBoolean, true); scope.publishInterface(providedHost, "host.name.org");