void () { VirtualFile virtualFile = myFixture.addFileToProject("user-settings.xml", "<settings/>").getVirtualFile(); myFixture.addFileToProject("global-settings.xml", "<settings/>"); myFixture.addFileToProject(".mvn/maven.config", "-o -U -N -T3 -q -X -e -C -ff -s user-settings.xml -gs global-settings.xml"); MavenGeneralSettings settings = new MavenGeneralSettings(getProject()); settings.setUseMavenConfig(true); settings.updateFromMavenConfig(Collections.singletonList(virtualFile)); Assert.assertEquals(MavenExecutionOptions.ChecksumPolicy.FAIL, settings.getChecksumPolicy()); Assert.assertEquals(MavenExecutionOptions.FailureMode.FAST, settings.getFailureBehavior()); Assert.assertEquals(MavenExecutionOptions.LoggingLevel.DISABLED, settings.getOutputLevel()); Assert.assertTrue(settings.isAlwaysUpdateSnapshots()); Assert.assertTrue(settings.isWorkOffline()); Assert.assertTrue(settings.isPrintErrorStackTraces()); Assert.assertTrue(settings.isNonRecursive()); Assert.assertEquals("3", settings.getThreads()); }