Skip to content
Permalink
Browse files

Improved: Turn ‘UtilMiscTests’ into a unit test class

(OFBIZ-11067)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860020 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed May 25, 2019
1 parent e59a460 commit c465e734ae3f0f15be0c617d48cc506828c8f3da
@@ -1,4 +1,4 @@
/*******************************************************************************
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -15,21 +15,20 @@
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*******************************************************************************/
package org.apache.ofbiz.base.util.test;
*/
package org.apache.ofbiz.base.util;

import static org.junit.Assert.fail;

import java.util.List;
import java.util.Locale;

import org.apache.ofbiz.base.test.GenericTestCaseBase;
import org.apache.ofbiz.base.util.UtilMisc;
import org.junit.Test;

public class UtilMiscTests extends GenericTestCaseBase {

public UtilMiscTests(String name) {
super(name);
}
public class UtilMiscTests {

@Test
public void testLocales() throws Exception {
List<Locale> availableLocales = UtilMisc.availableLocales();
for (Locale availableLocale : availableLocales) {
@@ -23,7 +23,6 @@
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/test-suite.xsd">
<test-group case-name="basetests">
<junit-test-suite class-name="org.apache.ofbiz.base.util.test.AssertTests"/>
<junit-test-suite class-name="org.apache.ofbiz.base.util.test.UtilMiscTests"/>
<junit-test-suite class-name="org.apache.ofbiz.base.util.test.UtilObjectTests"/>
<junit-test-suite class-name="org.apache.ofbiz.base.util.string.test.FlexibleStringExpanderTests"/>
<junit-test-suite class-name="org.apache.ofbiz.base.util.collections.test.FlexibleMapAccessorTests"/>

0 comments on commit c465e73

Please sign in to comment.
You can’t perform that action at this time.