< prev index next >

modules/javafx.base/src/test/java/test/com/sun/javafx/binding/SelectBindingTest.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2010, 2015, 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. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2010, 2018, 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. Oracle designates this
*** 40,50 **** import javafx.beans.binding.LongBinding; import javafx.beans.binding.ObjectBinding; import javafx.beans.binding.StringBinding; import test.javafx.binding.Variable; import javafx.collections.ObservableList; ! import sun.util.logging.PlatformLogger.Level; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; --- 40,50 ---- import javafx.beans.binding.LongBinding; import javafx.beans.binding.ObjectBinding; import javafx.beans.binding.StringBinding; import test.javafx.binding.Variable; import javafx.collections.ObservableList; ! import com.sun.javafx.logging.PlatformLogger.Level; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test;
*** 106,115 **** --- 106,116 ---- private static final ErrorLoggingUtiltity log = new ErrorLoggingUtiltity(); @BeforeClass public static void setUpClass() { + System.err.println("SelectBindingTest : log messages are expected from these tests."); log.start(); } @AfterClass public static void tearDownClass() {
*** 555,566 **** */ @SuppressWarnings("unchecked") @Test public void stressTestRandomOperationsResultInCorrectListenersInstalled() { - final Level logLevel = Logging.getLogger().level(); - Logging.getLogger().setLevel(Level.SEVERE); List<String> steps = new ArrayList<String>(); Random rand = new Random(System.currentTimeMillis()); for (int i = 0; i < 10000; i++) { switch (rand.nextInt(20)) { --- 556,565 ----
*** 642,652 **** break; default: fail("Should not reach here"); } } - Logging.getLogger().setLevel(logLevel); } private void printSteps(int iteration, List<String> steps) { System.err.println("Failed on iteration " + iteration + " for the following observableArrayList of changes"); for (String s : steps) { --- 641,650 ----
< prev index next >