Search in sources :

Example 1 with MavenSettings

use of org.jetbrains.idea.maven.utils.MavenSettings in project intellij-community by JetBrains.

the class MavenSettingsTest method testNotModifiedAfterCreation.

public void testNotModifiedAfterCreation() throws Exception {
    MavenSettings s = new MavenSettings(myProject);
    s.createComponent();
    s.reset();
    try {
        assertFalse(s.isModified());
    } finally {
        //prevent memory leaks
        s.disposeUIResources();
    }
    for (Configurable each : s.getConfigurables()) {
        each.createComponent();
        each.reset();
        try {
            assertFalse(each.isModified());
        } finally {
            //prevent memory leaks
            each.disposeUIResources();
        }
    }
}
Also used : Configurable(com.intellij.openapi.options.Configurable) MavenSettings(org.jetbrains.idea.maven.utils.MavenSettings)

Aggregations

Configurable (com.intellij.openapi.options.Configurable)1 MavenSettings (org.jetbrains.idea.maven.utils.MavenSettings)1