/*
* @test
* @bug 6498300
*
* @summary regression: parent loggers are not properly registered
* @author ss45998
*
* @build ParentLoggersTest
*/
/*
* There are several original tests which were failed when
* this regression was introduced. This is an extra test
* to ensure that the parent loggers with the defined
* .level property are implicitly registered.
*/
public class ParentLoggersTest {
static final boolean PASSED = true;
static final boolean FAILED = false;
/* Properties */
/* Logger names */
// cache the initial set of loggers before this test begins
// to add any loggers
while (e.hasMoreElements()) {
}
};
if (checkLoggers() == PASSED) {
} else {
throw new Exception(MSG_FAILED);
}
}
// LogManager always creates two loggers:
return expectedLoggerNames;
}
/* Check: getLoggerNames() must return correct names
* for registered loggers and their parents.
* Returns boolean values: PASSED or FAILED
*/
public static boolean checkLoggers() {
// Create the logger LOGGER_NAME_1
// Create the logger LOGGER_NAME_2
while (returnedLoggersEnum.hasMoreElements()) {
// filter out the loggers that have been added before this test runs
}
};
}
// Returns boolean values: PASSED or FAILED
} else {
int j = 0;
if (!checked[j] &&
checked[j] = true;
break;
}
}
break;
}
}
}
if (!status) {
}
return status;
}
} else {
}
}
} else {
}
}
}
}