Skip to content

Console Output

Started by timer
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on sos-builder01-ubuntu18 (lin) in workspace /builds/workspace/cocospoon
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Done
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository https://github.com/SpoonLabs/CoCoSpoon.git
 > git init /builds/workspace/cocospoon # timeout=10
Fetching upstream changes from https://github.com/SpoonLabs/CoCoSpoon.git
 > git --version # timeout=10
 > git --version # 'git version 2.17.1'
 > git fetch --tags --progress -- https://github.com/SpoonLabs/CoCoSpoon.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/SpoonLabs/CoCoSpoon.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision cdaa4ec68f933eb275f14152015541d25898f5eb (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f cdaa4ec68f933eb275f14152015541d25898f5eb # timeout=10
Commit message: "Update pom.xml"
 > git rev-list --no-walk cdaa4ec68f933eb275f14152015541d25898f5eb # timeout=10
[cocospoon] $ /bin/sh -xe /tmp/jenkins11779506554160874180.sh
+ curl https://spoon.gforge.inria.fr/jenkins/inject_spoon_snapshot.py
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2376  100  2376    0     0  11647      0 --:--:-- --:--:-- --:--:-- 11590
100  2376  100  2376    0     0  11154      0 --:--:-- --:--:-- --:--:-- 11102
+ python3 -c #! /bin/python3
"""Script for injecting the latest SNAPSHOT version of Spoon into all pom.xml
files it finds in the curren tworking directory or any subdirectory.

Requires the ``defusedxml`` package to be installed separately.

This script is compatible with Python 3.5+
"""
import xml.etree.ElementTree as ET
import subprocess
import pathlib

from typing import Optional

SPOON_SNAPSHOT_REPO = """
<repository>
    <id>spoon-snapshot-repo</id>
    <name>Maven Repository for Spoon Snapshots</name>
    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    <snapshots/>
</repository>
"""
MAVEN_NAMESPACE = "http://maven.apache.org/POM/4.0.0"
NAMESPACES = {"": MAVEN_NAMESPACE}

MAVEN_VERSIONS_COMMAND = "mvn -B -U versions:use-latest-versions -DallowSnapshots -Dincludes=fr.inria.gforge.spoon".split()
PURGE_LOCAL_REPO_COMMAND = "mvn -B -U dependency:purge-local-repository -DmanualInclude='fr.inria.gforge.spoon:spoon-core' -DsnapshotsOnly=true".split()


def main():
    ET.register_namespace("", MAVEN_NAMESPACE)
    pom_file = pathlib.Path("pom.xml")
    inject_snapshot_repo(pom_file)
    subprocess.run(MAVEN_VERSIONS_COMMAND, cwd=str(pom_file.parent))
    subprocess.run(PURGE_LOCAL_REPO_COMMAND, cwd=str(pom_file.parent))


def inject_snapshot_repo(pom_file: pathlib.Path) -> None:
    tree = ET.parse(str(pom_file))
    root = tree.getroot()

    repositories = root.find(in_maven_namespace("repositories"))
    if not repositories:
        repositories = ET.fromstring("<repositories></repositories>")
        root.append(repositories)

    snapshot_repo = ET.fromstring(SPOON_SNAPSHOT_REPO)
    snapshot_repo_url = snapshot_repo.find("url").text

    for repo in repositories.findall(in_maven_namespace("repository")):
        url = repo.find(in_maven_namespace("url")).text
        if url == snapshot_repo_url:
            return

    repositories.append(snapshot_repo)

    tree.write(str(pom_file))


def in_maven_namespace(tag: str) -> str:
    """Wrap the tag in the default Maven namespace.

    If porting this script to Python 3.6+, then this method can be removed and
    one can instead search with a default namespace like so:

    someElement.find(tag, namespaces={"": MAVEN_NAMESPACE})

    This does not appear to work in Python 3.5
    """
    return "{{{}}}{}".format(MAVEN_NAMESPACE, tag)


if __name__ == "__main__":
    main()
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[INFO] Scanning for projects...
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (21 kB at 29 kB/s)
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 20 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/versions-maven-plugin/maven-metadata.xml
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/versions-maven-plugin/maven-metadata.xml (1.2 kB at 21 kB/s)
[INFO] 
[INFO] --------------------< fil.iagl.cocospoon:CocoSpoon >--------------------
[INFO] Building CocoSpoon 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- versions-maven-plugin:2.16.2:use-latest-versions (default-cli) @ CocoSpoon ---
[INFO] Downloading from sonatype-oss-public: https://oss.sonatype.org/content/groups/public/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml
[INFO] Downloading from spoon-snapshot-repo: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml
[INFO] Downloading from gforge.inria.fr-snapshot: https://repository.ow2.org/nexus/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml (10 kB at 180 kB/s)
[INFO] Downloaded from gforge.inria.fr-snapshot: https://repository.ow2.org/nexus/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml (881 B at 3.0 kB/s)
[INFO] Downloaded from spoon-snapshot-repo: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml (292 B at 486 B/s)
[INFO] Downloaded from sonatype-oss-public: https://oss.sonatype.org/content/groups/public/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml (10 kB at 16 kB/s)
[INFO] Updated fr.inria.gforge.spoon:spoon-core:jar:6.2.0 to version 10.4.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.115 s
[INFO] Finished at: 2023-12-06T17:36:10+01:00
[INFO] ------------------------------------------------------------------------
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------< fil.iagl.cocospoon:CocoSpoon >--------------------
[INFO] Building CocoSpoon 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:purge-local-repository (default-cli) @ CocoSpoon ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.464 s
[INFO] Finished at: 2023-12-06T17:36:15+01:00
[INFO] ------------------------------------------------------------------------
+ mvn test
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------< fil.iagl.cocospoon:CocoSpoon >--------------------
[INFO] Building CocoSpoon 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from sonatype-oss-public: https://oss.sonatype.org/content/groups/public/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/maven-metadata.xml
Downloading from spoon-snapshot-repo: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/maven-metadata.xml
Downloading from gforge.inria.fr-snapshot: https://repository.ow2.org/nexus/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/maven-metadata.xml
Progress (1): 1.0 kB
                    
Downloaded from gforge.inria.fr-snapshot: https://repository.ow2.org/nexus/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/maven-metadata.xml (1.0 kB at 1.3 kB/s)
Progress (1): 1.4 kB
Progress (2): 1.4 kB | 1.4 kB
                             
Downloaded from sonatype-oss-public: https://oss.sonatype.org/content/groups/public/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/maven-metadata.xml (1.4 kB at 1.4 kB/s)
Downloaded from spoon-snapshot-repo: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/maven-metadata.xml (1.4 kB at 1.4 kB/s)
Downloading from sonatype-oss-public: https://oss.sonatype.org/content/groups/public/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/spoon-core-10.4.3-20231206.010119-1.pom
Downloaded from sonatype-oss-public: https://oss.sonatype.org/content/groups/public/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/spoon-core-10.4.3-20231206.010119-1.pom (0 B at 0 B/s)
Downloading from sonatype-oss-public: https://oss.sonatype.org/content/groups/public/fr/inria/gforge/spoon/spoon-pom/10.4.3-SNAPSHOT/maven-metadata.xml
Progress (1): 609 B
                   
Downloaded from sonatype-oss-public: https://oss.sonatype.org/content/groups/public/fr/inria/gforge/spoon/spoon-pom/10.4.3-SNAPSHOT/maven-metadata.xml (609 B at 2.8 kB/s)
Downloading from sonatype-oss-public: https://oss.sonatype.org/content/groups/public/fr/inria/gforge/spoon/spoon-pom/10.4.3-SNAPSHOT/spoon-pom-10.4.3-20231206.010811-1.pom
Downloaded from sonatype-oss-public: https://oss.sonatype.org/content/groups/public/fr/inria/gforge/spoon/spoon-pom/10.4.3-SNAPSHOT/spoon-pom-10.4.3-20231206.010811-1.pom (0 B at 0 B/s)
Downloading from sonatype-oss-public: https://oss.sonatype.org/content/groups/public/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/spoon-core-10.4.3-20231206.010119-1.jar
Progress (1): 0/1.9 MB
Progress (1): 0/1.9 MB
Progress (1): 0/1.9 MB
Progress (1): 0/1.9 MB
Progress (1): 0/1.9 MB
Progress (1): 0.1/1.9 MB
Progress (1): 0.1/1.9 MB
Progress (1): 0.1/1.9 MB
Progress (1): 0.1/1.9 MB
Progress (1): 0.1/1.9 MB
Progress (1): 0.1/1.9 MB
Progress (1): 0.1/1.9 MB
Progress (1): 0.1/1.9 MB
Progress (1): 0.1/1.9 MB
Progress (1): 0.1/1.9 MB
Progress (1): 0.1/1.9 MB
Progress (1): 0.1/1.9 MB
Progress (1): 0.2/1.9 MB
Progress (1): 0.2/1.9 MB
Progress (1): 0.2/1.9 MB
Progress (1): 0.2/1.9 MB
Progress (1): 0.2/1.9 MB
Progress (1): 0.2/1.9 MB
Progress (1): 0.2/1.9 MB
Progress (1): 0.2/1.9 MB
Progress (1): 0.2/1.9 MB
Progress (1): 0.2/1.9 MB
Progress (1): 0.2/1.9 MB
Progress (1): 0.2/1.9 MB
Progress (1): 0.3/1.9 MB
Progress (1): 0.3/1.9 MB
Progress (1): 0.3/1.9 MB
Progress (1): 0.3/1.9 MB
Progress (1): 0.3/1.9 MB
Progress (1): 0.3/1.9 MB
Progress (1): 0.3/1.9 MB
Progress (1): 0.3/1.9 MB
Progress (1): 0.3/1.9 MB
Progress (1): 0.3/1.9 MB
Progress (1): 0.3/1.9 MB
Progress (1): 0.3/1.9 MB
Progress (1): 0.4/1.9 MB
Progress (1): 0.4/1.9 MB
Progress (1): 0.4/1.9 MB
Progress (1): 0.4/1.9 MB
Progress (1): 0.4/1.9 MB
Progress (1): 0.4/1.9 MB
Progress (1): 0.4/1.9 MB
Progress (1): 0.4/1.9 MB
Progress (1): 0.4/1.9 MB
Progress (1): 0.4/1.9 MB
Progress (1): 0.4/1.9 MB
Progress (1): 0.4/1.9 MB
Progress (1): 0.5/1.9 MB
Progress (1): 0.5/1.9 MB
Progress (1): 0.5/1.9 MB
Progress (1): 0.5/1.9 MB
Progress (1): 0.5/1.9 MB
Progress (1): 0.5/1.9 MB
Progress (1): 0.5/1.9 MB
Progress (1): 0.5/1.9 MB
Progress (1): 0.5/1.9 MB
Progress (1): 0.5/1.9 MB
Progress (1): 0.5/1.9 MB
Progress (1): 0.5/1.9 MB
Progress (1): 0.6/1.9 MB
Progress (1): 0.6/1.9 MB
Progress (1): 0.6/1.9 MB
Progress (1): 0.6/1.9 MB
Progress (1): 0.6/1.9 MB
Progress (1): 0.6/1.9 MB
Progress (1): 0.6/1.9 MB
Progress (1): 0.6/1.9 MB
Progress (1): 0.6/1.9 MB
Progress (1): 0.6/1.9 MB
Progress (1): 0.6/1.9 MB
Progress (1): 0.6/1.9 MB
Progress (1): 0.6/1.9 MB
Progress (1): 0.7/1.9 MB
Progress (1): 0.7/1.9 MB
Progress (1): 0.7/1.9 MB
Progress (1): 0.7/1.9 MB
Progress (1): 0.7/1.9 MB
Progress (1): 0.7/1.9 MB
Progress (1): 0.7/1.9 MB
Progress (1): 0.7/1.9 MB
Progress (1): 0.7/1.9 MB
Progress (1): 0.7/1.9 MB
Progress (1): 0.7/1.9 MB
Progress (1): 0.7/1.9 MB
Progress (1): 0.8/1.9 MB
Progress (1): 0.8/1.9 MB
Progress (1): 0.8/1.9 MB
Progress (1): 0.8/1.9 MB
Progress (1): 0.8/1.9 MB
Progress (1): 0.8/1.9 MB
Progress (1): 0.8/1.9 MB
Progress (1): 0.8/1.9 MB
Progress (1): 0.8/1.9 MB
Progress (1): 0.8/1.9 MB
Progress (1): 0.8/1.9 MB
Progress (1): 0.8/1.9 MB
Progress (1): 0.9/1.9 MB
Progress (1): 0.9/1.9 MB
Progress (1): 0.9/1.9 MB
Progress (1): 0.9/1.9 MB
Progress (1): 0.9/1.9 MB
Progress (1): 0.9/1.9 MB
Progress (1): 0.9/1.9 MB
Progress (1): 0.9/1.9 MB
Progress (1): 0.9/1.9 MB
Progress (1): 0.9/1.9 MB
Progress (1): 0.9/1.9 MB
Progress (1): 0.9/1.9 MB
Progress (1): 1.0/1.9 MB
Progress (1): 1.0/1.9 MB
Progress (1): 1.0/1.9 MB
Progress (1): 1.0/1.9 MB
Progress (1): 1.0/1.9 MB
Progress (1): 1.0/1.9 MB
Progress (1): 1.0/1.9 MB
Progress (1): 1.0/1.9 MB
Progress (1): 1.0/1.9 MB
Progress (1): 1.0/1.9 MB
Progress (1): 1.0/1.9 MB
Progress (1): 1.0/1.9 MB
Progress (1): 1.1/1.9 MB
Progress (1): 1.1/1.9 MB
Progress (1): 1.1/1.9 MB
Progress (1): 1.1/1.9 MB
Progress (1): 1.1/1.9 MB
Progress (1): 1.1/1.9 MB
Progress (1): 1.1/1.9 MB
Progress (1): 1.1/1.9 MB
Progress (1): 1.1/1.9 MB
Progress (1): 1.1/1.9 MB
Progress (1): 1.1/1.9 MB
Progress (1): 1.1/1.9 MB
Progress (1): 1.1/1.9 MB
Progress (1): 1.2/1.9 MB
Progress (1): 1.2/1.9 MB
Progress (1): 1.2/1.9 MB
Progress (1): 1.2/1.9 MB
Progress (1): 1.2/1.9 MB
Progress (1): 1.2/1.9 MB
Progress (1): 1.2/1.9 MB
Progress (1): 1.2/1.9 MB
Progress (1): 1.2/1.9 MB
Progress (1): 1.2/1.9 MB
Progress (1): 1.2/1.9 MB
Progress (1): 1.2/1.9 MB
Progress (1): 1.3/1.9 MB
Progress (1): 1.3/1.9 MB
Progress (1): 1.3/1.9 MB
Progress (1): 1.3/1.9 MB
Progress (1): 1.3/1.9 MB
Progress (1): 1.3/1.9 MB
Progress (1): 1.3/1.9 MB
Progress (1): 1.3/1.9 MB
Progress (1): 1.3/1.9 MB
Progress (1): 1.3/1.9 MB
Progress (1): 1.3/1.9 MB
Progress (1): 1.3/1.9 MB
Progress (1): 1.4/1.9 MB
Progress (1): 1.4/1.9 MB
Progress (1): 1.4/1.9 MB
Progress (1): 1.4/1.9 MB
Progress (1): 1.4/1.9 MB
Progress (1): 1.4/1.9 MB
Progress (1): 1.4/1.9 MB
Progress (1): 1.4/1.9 MB
Progress (1): 1.4/1.9 MB
Progress (1): 1.4/1.9 MB
Progress (1): 1.4/1.9 MB
Progress (1): 1.4/1.9 MB
Progress (1): 1.5/1.9 MB
Progress (1): 1.5/1.9 MB
Progress (1): 1.5/1.9 MB
Progress (1): 1.5/1.9 MB
Progress (1): 1.5/1.9 MB
Progress (1): 1.5/1.9 MB
Progress (1): 1.5/1.9 MB
Progress (1): 1.5/1.9 MB
Progress (1): 1.5/1.9 MB
Progress (1): 1.5/1.9 MB
Progress (1): 1.5/1.9 MB
Progress (1): 1.5/1.9 MB
Progress (1): 1.5/1.9 MB
Progress (1): 1.6/1.9 MB
Progress (1): 1.6/1.9 MB
Progress (1): 1.6/1.9 MB
Progress (1): 1.6/1.9 MB
Progress (1): 1.6/1.9 MB
Progress (1): 1.6/1.9 MB
Progress (1): 1.6/1.9 MB
Progress (1): 1.6/1.9 MB
Progress (1): 1.6/1.9 MB
Progress (1): 1.6/1.9 MB
Progress (1): 1.6/1.9 MB
Progress (1): 1.6/1.9 MB
Progress (1): 1.7/1.9 MB
Progress (1): 1.7/1.9 MB
Progress (1): 1.7/1.9 MB
Progress (1): 1.7/1.9 MB
Progress (1): 1.7/1.9 MB
Progress (1): 1.7/1.9 MB
Progress (1): 1.7/1.9 MB
Progress (1): 1.7/1.9 MB
Progress (1): 1.7/1.9 MB
Progress (1): 1.7/1.9 MB
Progress (1): 1.7/1.9 MB
Progress (1): 1.7/1.9 MB
Progress (1): 1.8/1.9 MB
Progress (1): 1.8/1.9 MB
Progress (1): 1.8/1.9 MB
Progress (1): 1.8/1.9 MB
Progress (1): 1.8/1.9 MB
Progress (1): 1.8/1.9 MB
Progress (1): 1.8/1.9 MB
Progress (1): 1.8/1.9 MB
Progress (1): 1.8/1.9 MB
Progress (1): 1.8/1.9 MB
Progress (1): 1.8/1.9 MB
Progress (1): 1.8/1.9 MB
Progress (1): 1.9/1.9 MB
Progress (1): 1.9/1.9 MB
Progress (1): 1.9/1.9 MB
Progress (1): 1.9/1.9 MB
Progress (1): 1.9/1.9 MB
Progress (1): 1.9 MB    
                    
Downloaded from sonatype-oss-public: https://oss.sonatype.org/content/groups/public/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/spoon-core-10.4.3-20231206.010119-1.jar (1.9 MB at 1.0 MB/s)
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ CocoSpoon ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource to instrumenting
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ CocoSpoon ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 20 source files to /builds/workspace/cocospoon/target/classes
[WARNING] /builds/workspace/cocospoon/src/main/java/fil/iagl/opl/cocospoon/insert/impl/SwitchInsert.java: /builds/workspace/cocospoon/src/main/java/fil/iagl/opl/cocospoon/insert/impl/SwitchInsert.java uses unchecked or unsafe operations.
[WARNING] /builds/workspace/cocospoon/src/main/java/fil/iagl/opl/cocospoon/insert/impl/SwitchInsert.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ CocoSpoon ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /builds/workspace/cocospoon/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ CocoSpoon ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 23 source files to /builds/workspace/cocospoon/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ CocoSpoon ---
[INFO] Surefire report directory: /builds/workspace/cocospoon/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
Running fil.iagl.opl.cocospoon.CocoSpoonTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
maMethode
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.036 sec
Running fil.iagl.opl.cocospoon.processors.WhileInsertTest
public class WhileSample {
    public static void main(java.lang.String[] args) {
        int i = 0;
        TO BE INSERT;
        while (i < 10) {
            java.lang.System.out.println("mon while");
            i++;
        } 
        TO BE INSERT;
        while (true) {
            java.lang.System.out.println("mon while sans block");
        } 
    }
}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.247 sec
Running fil.iagl.opl.cocospoon.processors.ConstructorInsertTest
public class ConstructorSample {
    private java.lang.String foo;

    private java.lang.String bar;

    public ConstructorSample() {
        super();
        TO BE INSERT;
    }

    public ConstructorSample(java.lang.String foo) {
        this();
        TO BE INSERT;
        this.foo = foo;
    }

    public ConstructorSample(java.lang.String foo, java.lang.String bar) {
        this(foo);
        TO BE INSERT;
        this.bar = bar;
    }
}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec
Running fil.iagl.opl.cocospoon.processors.DoInsertTest
public class DoSample {
    public static void main(java.lang.String[] args) {
        int i = 10;
        do {
            TO BE INSERT;
            i--;
        } while (i > 10 );
        do {
            TO BE INSERT;
            i++;
        } while (i < 10 );
    }
}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.193 sec
Running fil.iagl.opl.cocospoon.processors.BeforeInsertTest
public class BeforeSample {
    public static void main(java.lang.String[] args) {
        for (int i = 0; i < args.length; i++) {
            TO BE INSERT;
            continue;
        }
        switch (args.length) {
            case 1 :
                TO BE INSERT;
                break;
        }
        TO BE INSERT;
        throw new java.lang.RuntimeException();
    }

    public int nonVoidMethod() {
        TO BE INSERT;
        return 1;
    }
}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.213 sec
Running fil.iagl.opl.cocospoon.processors.TryInsertTest
public class TrySample {
    public static void main(java.lang.String[] args) {
        TO BE INSERT;
        try {
            java.lang.System.out.println("test");
            java.lang.System.out.println("test");
            java.lang.System.out.println("test");
        } catch (java.lang.Exception e) {
            java.lang.System.out.println("exception");
        } catch (java.lang.IllegalAccessError e) {
            java.lang.System.out.println("exception");
        }
    }
}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.215 sec
Running fil.iagl.opl.cocospoon.processors.CatchInsertTest
public class TrySample {
    public static void main(java.lang.String[] args) {
        try {
            java.lang.System.out.println("test");
            java.lang.System.out.println("test");
            java.lang.System.out.println("test");
        } catch (java.lang.Exception e) {
            TO BE INSERT;
            java.lang.System.out.println("exception");
        } catch (java.lang.IllegalAccessError e) {
            TO BE INSERT;
            java.lang.System.out.println("exception");
        }
    }
}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.223 sec
Running fil.iagl.opl.cocospoon.processors.IfInsertTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.257 sec
Running fil.iagl.opl.cocospoon.processors.SwitchInsertTest
public class SwitchSample {
    public static void main(java.lang.String[] args) {
        int i = 0;
        TO BE INSERT;
        switch (i) {
            case 1 :
                break;
            case 2 :
                break;
            case 3 :
                break;
            default :
        }
        TO BE INSERT;
        switch (i) {
            case 1 :
                {
                    break;
                }
            case 2 :
                {
                    break;
                }
            case 3 :
                {
                    break;
                }
            default :
                {
                }
        }
    }
}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.233 sec
Running fil.iagl.opl.cocospoon.processors.SynchronizedInsertTest
public class SynchronizedSample {
    public static void main(java.lang.String[] args) {
        synchronized(args) {
            TO BE INSERT;
            java.lang.System.out.println("foo");
        }
        synchronized(args) {
            TO BE INSERT;
            java.lang.System.out.println("bar");
        }
    }
}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.198 sec
Running fil.iagl.opl.cocospoon.processors.MethodInsertTest
public class MethodSample {
    public MethodSample() {
        fil.iagl.opl.cocospoon.samples.MethodSample.main(new java.lang.String[]{  });
    }

    public static void main(java.lang.String[] args) {
        TO BE INSERT;
        java.lang.System.out.println("maMethode");
    }
}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.183 sec
Running fil.iagl.opl.cocospoon.processors.ForInsertTest
public class ForSample {
    public static void main(java.lang.String[] args) {
        for (int i = 0; i < 10; i++) {
            TO BE INSERT;
            java.lang.System.out.println(i);
        }
        for (int i = 0; i < 10; i++) {
            TO BE INSERT;
            java.lang.System.out.println(i);
        }
        for (int i : java.util.Arrays.asList(1, 2, 3)) {
            TO BE INSERT;
            java.lang.System.out.println(i);
        }
        for (int i : java.util.Arrays.asList(1, 2, 3)) {
            TO BE INSERT;
            java.lang.System.out.println(i);
        }
    }
}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.221 sec
Running fil.iagl.opl.cocospoon.processors.CaseInsertTest
public class SwitchSample {
    public static void main(java.lang.String[] args) {
        int i = 0;
        switch (i) {
            case 1 :
                TO BE INSERT;
                break;
            case 2 :
                TO BE INSERT;
                break;
            case 3 :
                TO BE INSERT;
                break;
            default :
                TO BE INSERT;
        }
        switch (i) {
            case 1 :
                TO BE INSERT;
                {
                    break;
                }
            case 2 :
                TO BE INSERT;
                {
                    break;
                }
            case 3 :
                TO BE INSERT;
                {
                    break;
                }
            default :
                TO BE INSERT;
                {
                }
        }
    }
}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.189 sec

Results :

Tests run: 13, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  18.489 s
[INFO] Finished at: 2023-12-06T17:36:36+01:00
[INFO] ------------------------------------------------------------------------
Finished: SUCCESS