mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-15 00:03:43 +01:00
moved interpolate string test to ModelTest
Former-commit-id: 399a9f462da994e9687345bca2f510c2bd393921
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user