Examples of GlobalReferentials


Examples of org.sonar.batch.protocol.input.GlobalReferentials

  @Before
  public void prepare() {
    projectRef = new ProjectReferentials();
    mode = mock(AnalysisMode.class);
    bootstrapProps = new GlobalSettings(new BootstrapProperties(Collections.<String, String>emptyMap()), new PropertyDefinitions(), new GlobalReferentials(), mode);
  }
View Full Code Here

Examples of org.sonar.batch.protocol.input.GlobalReferentials

    when(projectBootstrapper.bootstrap()).thenReturn(new ProjectReactor(ProjectDefinition.create()));
    parentContainer = new ComponentContainer();
    parentContainer.add(System2.INSTANCE);
    parentContainer.add(bootstrapProperties);
    parentContainer.add(analysisMode);
    GlobalReferentials globalRef = new GlobalReferentials();
    settings = new GlobalSettings(bootstrapProperties, new PropertyDefinitions(), globalRef, analysisMode);
    parentContainer.add(settings);
    ProjectReferentialsLoader projectReferentialsLoader = new ProjectReferentialsLoader() {
      @Override
      public ProjectReferentials load(ProjectReactor reactor, TaskProperties taskProperties) {
View Full Code Here

Examples of org.sonar.batch.protocol.input.GlobalReferentials

    boolean hasScanPerm = userSession.hasGlobalPermission(GlobalPermissions.SCAN_EXECUTION);
    boolean hasDryRunPerm = userSession.hasGlobalPermission(GlobalPermissions.DRY_RUN_EXECUTION);

    DbSession session = dbClient.openSession(false);
    try {
      GlobalReferentials ref = new GlobalReferentials();
      addMetrics(ref, session);
      addSettings(ref, hasScanPerm, hasDryRunPerm, session);

      response.stream().setMediaType(MimeTypes.JSON);
      IOUtils.write(ref.toJson(), response.stream().output());
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

Examples of org.sonar.batch.protocol.input.GlobalReferentials

  private AnalysisMode mode;

  @Before
  public void prepare() {
    globalRef = new GlobalReferentials();
    bootstrapProps = new BootstrapProperties(Collections.<String, String>emptyMap());
    mode = mock(AnalysisMode.class);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.