< prev index next >

jdk/test/java/util/logging/FileHandlerMaxLocksTest.java

Print this page
rev 17249 : 8180887: move FileUtils to top level testlibrary
Reviewed-by: duke

*** 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.
*** 26,48 **** * @bug 8153955 * @summary test the FileHandler's new property * "java.util.logging.FileHandler.maxLocks" which will be present in * "logging.properties" file with default value of 100. This property can be * overriden by specifying this property in the custom config file. ! * @library /lib/testlibrary ! * @build jdk.testlibrary.FileUtils * @author rpatil * @run main/othervm FileHandlerMaxLocksTest */ import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; import java.util.logging.FileHandler; ! import jdk.testlibrary.FileUtils; public class FileHandlerMaxLocksTest { private static final String LOGGER_DIR = "logger-dir"; private static final String MAX_LOCK_PROPERTY = "java.util.logging.FileHandler.maxLocks = 200"; --- 26,47 ---- * @bug 8153955 * @summary test the FileHandler's new property * "java.util.logging.FileHandler.maxLocks" which will be present in * "logging.properties" file with default value of 100. This property can be * overriden by specifying this property in the custom config file. ! * @library /test/lib * @author rpatil * @run main/othervm FileHandlerMaxLocksTest */ import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; import java.util.logging.FileHandler; ! import jdk.test.lib.util.FileUtils; public class FileHandlerMaxLocksTest { private static final String LOGGER_DIR = "logger-dir"; private static final String MAX_LOCK_PROPERTY = "java.util.logging.FileHandler.maxLocks = 200";
< prev index next >