< prev index next >

test/runtime/modules/IgnoreModulePropertiesTest.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 42,52 **** // thrown. public static void testProperty(String prop, String value) throws Exception { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( "-D" + prop + "=" + value, "-version"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); ! output.shouldContain("java version "); output.shouldHaveExitValue(0); // Ensure that the property and its value aren't available. if (System.getProperty(prop) != null) { throw new RuntimeException( --- 42,52 ---- // thrown. public static void testProperty(String prop, String value) throws Exception { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( "-D" + prop + "=" + value, "-version"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); ! output.shouldContain(" version "); output.shouldHaveExitValue(0); // Ensure that the property and its value aren't available. if (System.getProperty(prop) != null) { throw new RuntimeException(
< prev index next >