/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/

package org.eclipse.birt.report.model.api.extension;

import java.util.Locale;
import java.util.ResourceBundle;

import com.ibm.icu.util.ULocale;

/**
 * Provides the resource bundle with the given locale.
 */

public interface IResourceBundleProvider
{

	/**
	 * Returns the resource bundle with the locale.
	 * 
	 * @param locale
	 *            the given locale
	 * @return the resource bundle
	 * @deprecated to support ICU4J, replaced by :
	 *             getResourceBundle(ULocale locale)
	 */

	public ResourceBundle getResourceBundle( Locale locale );
	
	/**
	 * Returns the resource bundle with the locale.
	 * 
	 * @param locale
	 *            the given locale
	 * @return the resource bundle
	 */

	public ResourceBundle getResourceBundle( ULocale locale );

}

/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/

package org.eclipse.birt.report.model.api.extension;

import java.util.Locale;
import java.util.ResourceBundle;

import com.ibm.icu.util.ULocale;
import com.ibm.icu.util.UResourceBundle;

/**
 * Provides the resource bundle with the given locale.
 */

public interface IResourceBundleProvider
{

	/**
	 * Returns the resource bundle with the locale.
	 * 
	 * @param locale
	 *            the given locale
	 * @return the resource bundle
	 * @deprecated to support ICU4J, replaced by :
	 *             getResourceBundle(ULocale locale)
	 */

	public ResourceBundle getResourceBundle( Locale locale );
	
	/**
	 * Returns the resource bundle with the locale.
	 * 
	 * @param locale
	 *            the given locale
	 * @return the resource bundle
	 */

	public UResourceBundle getResourceBundle( ULocale locale );

}

Fix unit test case error