test_class.declarator: defaultTychoResolver
test_class.modifier: private
test_class.original_string: private DefaultTychoResolver defaultTychoResolver;
test_class.type: DefaultTychoResolver
test_class.var_name: defaultTychoResolver
test_class.file: tycho-core/src/test/java/org/eclipse/tycho/core/resolver/DefaultTychoResolverTest.java
test_class.identifier: DefaultTychoResolverTest
test_case.body: @Test
      public void testTychoEnvironmentPropertiesGetSet() {
          System.setProperty("os.name", PlatformPropertiesUtils.INTERNAL_OS_LINUX);
          System.setProperty("os.arch", PlatformPropertiesUtils.INTERNAL_AMD64);
  
          MavenProject project = mock(MavenProject.class);
          Properties mergedProperties = new Properties();
          Properties projectProperties = new Properties();
          when(project.getProperties()).thenReturn(projectProperties);
  
          defaultTychoResolver.setTychoEnvironmentProperties(mergedProperties, project);
  
          Object ws = projectProperties.getProperty(DefaultTychoResolver.TYCHO_ENV_OSGI_WS);
          Object os = projectProperties.getProperty(DefaultTychoResolver.TYCHO_ENV_OSGI_OS);
          Object arch = projectProperties.getProperty(DefaultTychoResolver.TYCHO_ENV_OSGI_ARCH);
  
          Assert.assertEquals(3, projectProperties.size());
          Assert.assertEquals(PlatformPropertiesUtils.ARCH_X86_64, arch);
          Assert.assertEquals(PlatformPropertiesUtils.OS_LINUX, os);
          Assert.assertEquals(PlatformPropertiesUtils.WS_GTK, ws);
      }
test_case.class_method_signature: DefaultTychoResolverTest.testTychoEnvironmentPropertiesGetSet()
test_case.full_signature: @Test public void testTychoEnvironmentPropertiesGetSet()
test_case.identifier: testTychoEnvironmentPropertiesGetSet
test_case.invocations: setProperty setProperty mock thenReturn when getProperties setTychoEnvironmentProperties getProperty getProperty getProperty assertEquals size assertEquals assertEquals assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTychoEnvironmentPropertiesGetSet()
focal_class.declarator: logger
focal_class.modifier: @Requirement
      private
focal_class.original_string: @Requirement
      private Logger logger;
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: configurationReader
focal_class.modifier: @Requirement
      private
focal_class.original_string: @Requirement
      private DefaultTargetPlatformConfigurationReader configurationReader;
focal_class.type: DefaultTargetPlatformConfigurationReader
focal_class.var_name: configurationReader
focal_class.declarator: dependencyResolverLocator
focal_class.modifier: @Requirement
      private
focal_class.original_string: @Requirement
      private DefaultDependencyResolverFactory dependencyResolverLocator;
focal_class.type: DefaultDependencyResolverFactory
focal_class.var_name: dependencyResolverLocator
focal_class.declarator: projectTypes
focal_class.modifier: @Requirement(role = TychoProject.class)
      private
focal_class.original_string: @Requirement(role = TychoProject.class)
      private Map<String, TychoProject> projectTypes;
focal_class.type: Map<String, TychoProject>
focal_class.var_name: projectTypes
focal_class.declarator: toolchainManager
focal_class.modifier: @Requirement
      private
focal_class.original_string: @Requirement
      private ToolchainManager toolchainManager;
focal_class.type: ToolchainManager
focal_class.var_name: toolchainManager
focal_class.declarator: TYCHO_ENV_OSGI_WS = "tycho.env.osgi.ws"
focal_class.modifier: public static final
focal_class.original_string: public static final String TYCHO_ENV_OSGI_WS = "tycho.env.osgi.ws";
focal_class.type: String
focal_class.var_name: TYCHO_ENV_OSGI_WS
focal_class.declarator: TYCHO_ENV_OSGI_OS = "tycho.env.osgi.os"
focal_class.modifier: public static final
focal_class.original_string: public static final String TYCHO_ENV_OSGI_OS = "tycho.env.osgi.os";
focal_class.type: String
focal_class.var_name: TYCHO_ENV_OSGI_OS
focal_class.declarator: TYCHO_ENV_OSGI_ARCH = "tycho.env.osgi.arch"
focal_class.modifier: public static final
focal_class.original_string: public static final String TYCHO_ENV_OSGI_ARCH = "tycho.env.osgi.arch";
focal_class.type: String
focal_class.var_name: TYCHO_ENV_OSGI_ARCH
focal_class.declarator: PROPERTY_PREFIX = "pom.model.property."
focal_class.modifier: public static final
focal_class.original_string: public static final String PROPERTY_PREFIX = "pom.model.property.";
focal_class.type: String
focal_class.var_name: PROPERTY_PREFIX
focal_class.file: tycho-core/src/main/java/org/eclipse/tycho/core/resolver/DefaultTychoResolver.java
focal_class.identifier: DefaultTychoResolver
focal_class.interfaces: implements TychoResolver
focal_class.class_method_signature: DefaultTychoResolver.setupProject(MavenSession session, MavenProject project, ReactorProject reactorProject)
focal_class.full_signature: @Override public void setupProject(MavenSession session, MavenProject project, ReactorProject reactorProject)
focal_class.identifier: setupProject
focal_class.modifiers: @Override public
focal_class.parameters: (MavenSession session, MavenProject project, ReactorProject reactorProject)
focal_class.return: void
focal_class.signature: void setupProject(MavenSession session, MavenProject project, ReactorProject reactorProject)
focal_class.class_method_signature: DefaultTychoResolver.resolveProject(MavenSession session, MavenProject project, List<ReactorProject> reactorProjects)
focal_class.full_signature: @Override public void resolveProject(MavenSession session, MavenProject project, List<ReactorProject> reactorProjects)
focal_class.identifier: resolveProject
focal_class.modifiers: @Override public
focal_class.parameters: (MavenSession session, MavenProject project, List<ReactorProject> reactorProjects)
focal_class.return: void
focal_class.signature: void resolveProject(MavenSession session, MavenProject project, List<ReactorProject> reactorProjects)
focal_class.class_method_signature: DefaultTychoResolver.traverse(MavenProject project, final DependencyVisitor visitor)
focal_class.full_signature: @Override public void traverse(MavenProject project, final DependencyVisitor visitor)
focal_class.identifier: traverse
focal_class.modifiers: @Override public
focal_class.parameters: (MavenProject project, final DependencyVisitor visitor)
focal_class.return: void
focal_class.signature: void traverse(MavenProject project, final DependencyVisitor visitor)
focal_class.class_method_signature: DefaultTychoResolver.setTychoEnvironmentProperties(Properties properties, MavenProject project)
focal_class.full_signature: protected void setTychoEnvironmentProperties(Properties properties, MavenProject project)
focal_class.identifier: setTychoEnvironmentProperties
focal_class.modifiers: protected
focal_class.parameters: (Properties properties, MavenProject project)
focal_class.return: void
focal_class.signature: void setTychoEnvironmentProperties(Properties properties, MavenProject project)
focal_class.class_method_signature: DefaultTychoResolver.setBuildProperties(MavenProject project)
focal_class.full_signature: protected void setBuildProperties(MavenProject project)
focal_class.identifier: setBuildProperties
focal_class.modifiers: protected
focal_class.parameters: (MavenProject project)
focal_class.return: void
focal_class.signature: void setBuildProperties(MavenProject project)
focal_method.body: protected void setTychoEnvironmentProperties(Properties properties, MavenProject project) {
          String arch = PlatformPropertiesUtils.getArch(properties);
          String os = PlatformPropertiesUtils.getOS(properties);
          String ws = PlatformPropertiesUtils.getWS(properties);
          project.getProperties().put(TYCHO_ENV_OSGI_WS, ws);
          project.getProperties().put(TYCHO_ENV_OSGI_OS, os);
          project.getProperties().put(TYCHO_ENV_OSGI_ARCH, arch);
      }
focal_method.class_method_signature: DefaultTychoResolver.setTychoEnvironmentProperties(Properties properties, MavenProject project)
focal_method.full_signature: protected void setTychoEnvironmentProperties(Properties properties, MavenProject project)
focal_method.identifier: setTychoEnvironmentProperties
focal_method.invocations: getArch getOS getWS put getProperties put getProperties put getProperties
focal_method.modifiers: protected
focal_method.parameters: (Properties properties, MavenProject project)
focal_method.return: void
focal_method.signature: void setTychoEnvironmentProperties(Properties properties, MavenProject project)