Package org.sonar.api.technicaldebt.batch

Examples of org.sonar.api.technicaldebt.batch.Requirement


      }
    };
  }

  private static boolean isSameRequirement(Measure measure, final Requirement requirement) {
    Requirement measureRequirement = measure.getRequirement();
    return measureRequirement != null &&
      measureRequirement.equals(requirement);
  }
View Full Code Here


    measure.setCharacteristic(c);
    measure.setDate(new Date());
    measure.setDescription("description");
    measure.setPersistenceMode(null);
    measure.setPersonId(3);
    Requirement r = mock(Requirement.class);
    when(r.id()).thenReturn(7);
    when(techDebtModel.requirementsById(7)).thenReturn(r);
    measure.setRequirement(r);
    measure.setTendency(4);
    measure.setUrl("http://foo");
    measure.setVariation1(11.0);
View Full Code Here

    value.put(m.getVariation4());
    value.put(m.getVariation5());
    putUTFOrNull(value, m.getUrl());
    Characteristic characteristic = m.getCharacteristic();
    value.put(characteristic != null ? characteristic.id() : null);
    Requirement requirement = m.getRequirement();
    value.put(requirement != null ? requirement.id() : null);
    Integer personId = m.getPersonId();
    value.put(personId != null ? personId.intValue() : null);
    PersistenceMode persistenceMode = m.getPersistenceMode();
    value.putString(persistenceMode != null ? persistenceMode.name() : null);
  }
View Full Code Here

TOP

Related Classes of org.sonar.api.technicaldebt.batch.Requirement

Copyright © 2018 www.massapicom. 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.