Skip to content

Commit

Permalink
using LTS version 4.5.1 instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudolf Batt committed Jun 23, 2015
1 parent d5c080d commit 6e2b2a9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 61 deletions.
2 changes: 1 addition & 1 deletion sonar-jmeter-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<properties>
<sonar.pluginClass>org.sonar.plugins.jmeter.JMeterPlugin</sonar.pluginClass>
<sonar.pluginName>JMeter</sonar.pluginName>
<sonar.version>5.1</sonar.version>
<sonar.version>4.5.1</sonar.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,9 @@
import java.util.Set;

import org.apache.commons.lang.NotImplementedException;
import org.sonar.api.batch.AnalysisMode;
import org.sonar.api.batch.Event;
import org.sonar.api.batch.SensorContext;
import org.sonar.api.batch.fs.FileSystem;
import org.sonar.api.batch.fs.InputFile;
import org.sonar.api.batch.fs.InputPath;
import org.sonar.api.batch.rule.ActiveRules;
import org.sonar.api.batch.sensor.dependency.NewDependency;
import org.sonar.api.batch.sensor.duplication.NewDuplication;
import org.sonar.api.batch.sensor.highlighting.NewHighlighting;
import org.sonar.api.batch.sensor.issue.NewIssue;
import org.sonar.api.batch.sensor.measure.NewMeasure;
import org.sonar.api.config.Settings;
import org.sonar.api.design.Dependency;
import org.sonar.api.measures.Measure;
import org.sonar.api.measures.MeasuresFilter;
Expand All @@ -52,59 +42,74 @@
@SuppressWarnings("rawtypes")
public class MockSensorContext implements SensorContext {

@Override
public Event createEvent(Resource arg0, String arg1, String arg2, String arg3, Date arg4) {
throw new NotImplementedException();
}

@Override
public void deleteEvent(Event arg0) {
throw new NotImplementedException();
}

@Override
public void deleteLink(String arg0) {
throw new NotImplementedException();
}

@Override
public Set<Dependency> getDependencies() {
throw new NotImplementedException();
}

@Override
public List<Event> getEvents(Resource arg0) {
throw new NotImplementedException();
}

@Override
public Collection<Dependency> getIncomingDependencies(Resource arg0) {
throw new NotImplementedException();
}

@Override
public <M> M getMeasures(MeasuresFilter<M> arg0) {
throw new NotImplementedException();
}

@Override
public <M> M getMeasures(Resource arg0, MeasuresFilter<M> arg1) {
throw new NotImplementedException();
}

@Override
public Collection<Dependency> getOutgoingDependencies(Resource arg0) {
throw new NotImplementedException();
}

@Override
public Dependency saveDependency(Dependency arg0) {
throw new NotImplementedException();
}

@Override
public void saveLink(ProjectLink arg0) {
throw new NotImplementedException();
}

@Override
public Measure saveMeasure(Measure measure) {
if (measure==null) throw new NullPointerException();
if (measure==null) {
throw new NullPointerException();
}
if (measure.getMetric() == null) {
throw new RuntimeException("Metric cannot be null");
}

return measure;
}

@Override
public Measure saveMeasure(Metric metric, Double value) {
if (value != null) {
if (Double.isNaN(value)) {
Expand All @@ -114,104 +119,73 @@ public Measure saveMeasure(Metric metric, Double value) {
return new Measure(metric, value);
}

@Override
public Measure saveMeasure(Resource arg0, Measure arg1) {
throw new NotImplementedException();
}

@Override
public Measure saveMeasure(Resource arg0, Metric arg1, Double arg2) {
throw new NotImplementedException();
}

@Override
public String saveResource(Resource arg0) {
throw new NotImplementedException();
}

@Override
public void saveSource(Resource arg0, String arg1) {
throw new NotImplementedException();
}

@Override
public void saveViolation(Violation arg0) {
throw new NotImplementedException();
}

public void saveViolations(Collection<Violation> arg0) {
throw new NotImplementedException();
}

public boolean index(Resource resource) {
throw new NotImplementedException();
}

public boolean index(Resource resource, Resource parentReference) {
throw new NotImplementedException();
}

public boolean isExcluded(Resource reference) {
throw new NotImplementedException();
}

public boolean isIndexed(Resource reference, boolean acceptExcluded) {
throw new NotImplementedException();
}

public <R extends Resource> R getResource(R reference) {
throw new NotImplementedException();
}

public Resource getParent(Resource reference) {
throw new NotImplementedException();
}

public Collection<Resource> getChildren(Resource reference) {
throw new NotImplementedException();
}

public void saveViolation(Violation violation, boolean force) {
throw new NotImplementedException();
}

@Override
public Settings settings() {
public void saveViolations(Collection<Violation> arg0) {
throw new NotImplementedException();
}

@Override
public FileSystem fileSystem() {
public boolean index(Resource resource) {
throw new NotImplementedException();
}

@Override
public ActiveRules activeRules() {
public boolean index(Resource resource, Resource parentReference) {
throw new NotImplementedException();
}

@Override
public AnalysisMode analysisMode() {
public boolean isExcluded(Resource reference) {
throw new NotImplementedException();
}

@Override
public <G extends Serializable> NewMeasure<G> newMeasure() {
public boolean isIndexed(Resource reference, boolean acceptExcluded) {
throw new NotImplementedException();
}

@Override
public NewIssue newIssue() {
public <R extends Resource> R getResource(R reference) {
throw new NotImplementedException();
}

@Override
public NewHighlighting newHighlighting() {
public Resource getParent(Resource reference) {
throw new NotImplementedException();
}

@Override
public NewDuplication newDuplication() {
public Collection<Resource> getChildren(Resource reference) {
throw new NotImplementedException();
}

@Override
public NewDependency newDependency() {
public void saveViolation(Violation violation, boolean force) {
throw new NotImplementedException();
}

Expand All @@ -235,8 +209,4 @@ public Measure saveMeasure(InputFile inputFile, Measure measure) {
throw new NotImplementedException();
}

@Override
public Resource getResource(InputPath inputPath) {
throw new NotImplementedException();
}
}

0 comments on commit 6e2b2a9

Please sign in to comment.