void () { myFixture.addFileToProject(".mvn/maven.config", "-o -U -N -T3 -q -X -e -C -c -ff -fae -fn" + " -s user-settings.xml -gs global-settings.xml"); MavenConfig config = MavenConfigParser.parse(myFixture.getTempDirPath()); Assert.assertTrue(config.hasOption(MavenConfigSettings.OFFLINE)); Assert.assertTrue(config.hasOption(MavenConfigSettings.UPDATE_SNAPSHOTS)); Assert.assertTrue(config.hasOption(MavenConfigSettings.NON_RECURSIVE)); Assert.assertTrue(config.hasOption(MavenConfigSettings.QUIET)); Assert.assertTrue(config.hasOption(MavenConfigSettings.ERRORS)); Assert.assertTrue(config.hasOption(MavenConfigSettings.DEBUG)); Assert.assertTrue(config.hasOption(MavenConfigSettings.CHECKSUM_WARNING_POLICY)); Assert.assertTrue(config.hasOption(MavenConfigSettings.CHECKSUM_FAILURE_POLICY)); Assert.assertTrue(config.hasOption(MavenConfigSettings.FAIL_AT_END)); Assert.assertTrue(config.hasOption(MavenConfigSettings.FAIL_FAST)); Assert.assertTrue(config.hasOption(MavenConfigSettings.FAIL_NEVER)); Assert.assertEquals("3", config.getOptionValue(MavenConfigSettings.THREADS)); Assert.assertEquals("user-settings.xml", config.getOptionValue(MavenConfigSettings.ALTERNATE_USER_SETTINGS)); Assert.assertEquals("global-settings.xml", config.getOptionValue(MavenConfigSettings.ALTERNATE_GLOBAL_SETTINGS)); }