/**************************************************************************** Copyright (c) 2003, Landmark Graphics and others. All rights reserved. This program and accompanying materials are made available under the terms of the Common Public License - v1.0, which accompanies this distribution, and is available at http://www.eclipse.org/legal/cpl-v10.html ****************************************************************************/ package com.lgc.wsh.util.test; import java.util.logging.*; import junit.framework.TestCase; import junit.framework.TestSuite; import com.lgc.wsh.util.CleanFormatter; import com.lgc.wsh.util.CleanHandler; /** Wrap com.lgc.wsh.util.CleanFormatter for junit testing. (junit.jar must be in CLASSPATH) */ public class CleanFormatterTest extends TestCase { /** Line separator */ private static final String NL = System.getProperty("line.separator"); /** Unit tests */ public void testFormatter() { CleanHandler.setDefaultHandler(); Logger logger = Logger.getLogger("com.lgc.wsh.util.CleanFormatter"); CleanFormatter cf = new CleanFormatter(); String[] messages = new String[] {"one", "two", "three"}; Level[] levels = new Level[] {Level.INFO, Level.WARNING, Level.SEVERE}; String[] s = new String[3]; for (int i=0; i