Examples of JavaProject


Examples of hudson.plugins.analysis.util.model.JavaProject

     * Test whether a serialized project is the same object after
     * deserialization of the file format of release 2.2.
     */
    @Test
    public void ensureSameSerialization() {
        JavaProject project = deserialize("project.ser");

        verifyProject(project);
    }
View Full Code Here

Examples of hudson.plugins.analysis.util.model.JavaProject

     * Test whether a serialized project is the same object after
     * deserialization of the file format of release 2.2.
     */
    @Test
    public void ensureSameSerialization() {
        JavaProject project = deserialize("project.ser");

        verifyProject(project);
    }
View Full Code Here

Examples of hudson.plugins.analysis.util.model.JavaProject

        highWarnings = result.getNumberOfAnnotations(Priority.HIGH);
        normalWarnings = result.getNumberOfAnnotations(Priority.NORMAL);
        lowWarnings = result.getNumberOfAnnotations(Priority.LOW);

        JavaProject container = new JavaProject();
        container.addAnnotations(result.getAnnotations());

        project = new WeakReference<JavaProject>(container);

        computeZeroWarningsHighScore(build, result);
View Full Code Here

Examples of hudson.plugins.analysis.util.model.JavaProject

    public JavaProject getProject() {
        synchronized (projectLock) {
            if (project == null) {
                return loadResult();
            }
            JavaProject result = project.get();
            if (result == null) {
                return loadResult();
            }
            return result;
        }
View Full Code Here

Examples of hudson.plugins.analysis.util.model.JavaProject

     * removed by the garbage collector.
     *
     * @return the loaded result
     */
    private JavaProject loadResult() {
        JavaProject result;
        try {
            JavaProject newProject = new JavaProject();
            FileAnnotation[] annotations = (FileAnnotation[])getDataFile().read();
            newProject.addAnnotations(annotations);

            LOGGER.log(Level.FINE, "Loaded data file " + getDataFile() + " for build " + getOwner().getNumber());
            result = newProject;
        }
        catch (IOException exception) {
            LOGGER.log(Level.WARNING, "Failed to load " + getDataFile(), exception);
            result = new JavaProject();
        }
        project = new WeakReference<JavaProject>(result);

        return result;
    }
View Full Code Here

Examples of jmav.object.JavaProject

              public void run() {
                gestoreRisultatiPlugin.resetInput();
              }
            });
           
            final JavaProject jmav_project = new JavaProject(jmav_projectpath);
           
            GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
           
            if(store.getBoolean("BV_LARGE_CLASS")) {
              gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
View Full Code Here

Examples of jmav.object.JavaProject

    return avviata;
  }
 
  public static void main(String args[]) throws Exception {
    String projectpath = "../test-artefatto";
    JavaProject project = new JavaProject(projectpath);
   
    GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
    gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
    gestoreImpostazioni.modificaSoglia(GestoreImpostazioni.LargeClass, 1, 50);
    gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LongParameterList);
View Full Code Here

Examples of jmav.object.JavaProject

  @Test
  public void testAvviaAnalisi() throws Exception {
    try
    {
      String projectpath = "../test-artefatto";
      JavaProject project = new JavaProject(projectpath);
     
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      gestoreImpostazioni.modificaSoglia(GestoreImpostazioni.LargeClass, 1, 50);
     
View Full Code Here

Examples of jmav.object.JavaProject

  @Test
  public void testAvviaAnalisiDoppia() throws Exception {
    try
    {
      String projectpath = "../test-artefatto";
      JavaProject project = new JavaProject(projectpath);
     
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      gestoreImpostazioni.modificaSoglia(GestoreImpostazioni.LargeClass, 1, 50);
     
View Full Code Here

Examples of jmav.object.JavaProject

  @Test
  public void controllaAnalisiCorrente() throws Exception {
    try
    {
      String projectpath = "../test-artefatto";
      JavaProject project = new JavaProject(projectpath);
     
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      gestoreImpostazioni.modificaSoglia(GestoreImpostazioni.LargeClass, 1, 50);
     
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.