moved interpolate string test to ModelTest

Former-commit-id: 399a9f462da994e9687345bca2f510c2bd393921
This commit is contained in:
Jeremy Long
2015-05-03 07:21:15 -04:00
parent 142e06e752
commit 56fd3f2566

View File

@@ -126,15 +126,4 @@ public class JarAnalyzerTest extends BaseTest {
assertEquals(expResult, result);
}
@Test
public void testInterpolateString() {
Properties prop = new Properties();
prop.setProperty("key", "value");
prop.setProperty("nested", "nested ${key}");
String text = "This is a test of '${key}' '${nested}'";
String expResults = "This is a test of 'value' 'nested value'";
JarAnalyzer instance = new JarAnalyzer();
String results = instance.interpolateString(text, prop);
assertEquals(expResults, results);
}
}