1 /*******************************************************************************
\r
3 * * ===========================================================================
\r
4 * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
\r
5 * * ===========================================================================
\r
6 * * Licensed under the Apache License, Version 2.0 (the "License");
\r
7 * * you may not use this file except in compliance with the License.
\r
8 * * You may obtain a copy of the License at
\r
10 * * http://www.apache.org/licenses/LICENSE-2.0
\r
12 * * Unless required by applicable law or agreed to in writing, software
\r
13 * * distributed under the License is distributed on an "AS IS" BASIS,
\r
14 * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
15 * * See the License for the specific language governing permissions and
\r
16 * * limitations under the License.
\r
17 * * ============LICENSE_END====================================================
\r
19 * * ECOMP is a trademark and service mark of AT&T Intellectual Property.
\r
21 ******************************************************************************/
\r
22 package org.onap.aaf.cadi.util;
\r
24 import static org.junit.Assert.assertEquals;
\r
26 import org.junit.Test;
\r
28 public class JU_Split {
\r
31 public void split() {
\r
32 assertEquals(Split.split('c', "testctc").length,3);
\r
36 public void splitTrim() {
\r
37 assertEquals(Split.splitTrim('c', "testctc").length,3);
\r
41 public void splitTrimWithSize() {
\r
42 assertEquals(Split.splitTrim('c', "testcctc",2).length,2);
\r
46 public void splitTrim1() {
\r
47 assertEquals(Split.splitTrim('c', "testctc").length,3);
\r
51 public void splitTrimWithSize1() {
\r
52 assertEquals(Split.splitTrim('c', "testcctc",2).length,2);
\r
56 public void splitTrim2() {
\r
57 assertEquals(Split.splitTrim('c', "testctc").length,3);
\r
61 public void splitTrimWithSize2() {
\r
62 assertEquals(Split.splitTrim('c', "testcctc",2).length,2);
\r