package io.irontest.upgrade;

import org.apache.maven.artifact.versioning.DefaultArtifactVersion;

import java.util.HashMap;
import java.util.Map;

public class ClearBrowserCache {
    //  a map of <fromVersion> -> <toVersion>
    private Map<DefaultArtifactVersion, DefaultArtifactVersion> versionMap = new HashMap();

    public ClearBrowserCache() {
        versionMap.put(new DefaultArtifactVersion("0.12.4"), new DefaultArtifactVersion("0.13.0"));
        versionMap.put(new DefaultArtifactVersion("0.13.0"), new DefaultArtifactVersion("0.14.0"));
        versionMap.put(new DefaultArtifactVersion("0.14.0"), new DefaultArtifactVersion("0.15.0"));
        versionMap.put(new DefaultArtifactVersion("0.15.0"), new DefaultArtifactVersion("0.16.0"));
    }

    public Map<DefaultArtifactVersion, DefaultArtifactVersion> getVersionMap() {
        return versionMap;
    }
}

@@ -742,24 +742,124 @@
 %220.16.0%22));%0A
+        versionMap.put(new DefaultArtifactVersion(%220.16.0%22), new DefaultArtifactVersion(%220.16.1%22));%0A
     %7D%0A%0A    p

fix minor upgrade issue