blob: 2a2adb75ef0236ae1dea48bcd96b83850819c055 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package org.onap.appc.ccadaptor;
import org.junit.Assert;
import org.junit.Test;
public class TestSshJcraftWrapper {
@Test
public void TestCheckIfReceivedStringMatchesDelimeter(){
SshJcraftWrapper wrapper = new SshJcraftWrapper();
wrapper.getTheDate();
boolean result = wrapper.checkIfReceivedStringMatchesDelimeter("#", "config#", "config#");
System.out.println(result);
}
@Test
public void testRemoveWhiteSpaceAndNewLineCharactersAroundString(){
SshJcraftWrapper wrapper = new SshJcraftWrapper();
String nameSpace = wrapper.removeWhiteSpaceAndNewLineCharactersAroundString("namespace");
Assert.assertEquals("namespace", nameSpace);
}
}
|