@@ -0,0 +1,1696 @@
+/**%0A * Copyright (c) 2013 Sourcepit.org contributors and others. All rights reserved. This program and the accompanying%0A * materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution,%0A * and is available at http://www.eclipse.org/legal/epl-v10.html%0A */%0A%0Apackage org.sourcepit.maven.dependency.model;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.Test;%0Aimport org.sourcepit.common.maven.model.Scope;%0A%0Apublic class DependencyNodeTest%0A%7B%0A%0A   @Test%0A   public void testGetEffectiveScope()%0A   %7B%0A      DependencyModelFactory eFactory = DependencyModelFactory.eINSTANCE;%0A      DependencyNode node = eFactory.createDependencyNode();%0A%0A      try%0A      %7B%0A         node.getEffectiveScope();%0A         fail();%0A      %7D%0A      catch (NullPointerException e)%0A      %7B%0A      %7D%0A%0A      node.setDependencyDeclaration(eFactory.createDeclaredDependency());%0A%0A      assertNull(node.getManagedScope());%0A      assertNull(node.getInheritedScope());%0A      assertSame(Scope.COMPILE, node.getDependencyDeclaration().getScope());%0A      assertSame(Scope.COMPILE, node.getEffectiveScope());%0A%0A      node.setInheritedScope(Scope.RUNTIME);%0A%0A      assertNull(node.getManagedScope());%0A      assertSame(Scope.RUNTIME, node.getInheritedScope());%0A      assertSame(Scope.COMPILE, node.getDependencyDeclaration().getScope());%0A      assertSame(Scope.RUNTIME, node.getEffectiveScope());%0A%0A      node.setManagedScope(Scope.TEST);%0A%0A      assertSame(Scope.TEST, node.getManagedScope());%0A      assertSame(Scope.RUNTIME, node.getInheritedScope());%0A      assertSame(Scope.COMPILE, node.getDependencyDeclaration().getScope());%0A      assertSame(Scope.TEST, node.getEffectiveScope());%0A   %7D%0A%0A%7D%0A

Test DependencyNode#getEffectiveScope()