Skip to content

Commit

Permalink
Fixup: Test case adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
alshamams committed Sep 29, 2023
1 parent 32286d8 commit 653f498
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public class FeatureDataTestCase {
public void testSerialization() throws Exception {
String expected = String.format("<data%n" +
FEATURE_INDENT + "id=\"id.1\"%n" + FEATURE_INDENT + "os=\"win32\"%n" + FEATURE_INDENT
+ "arch=\"x86_64\"%n" + FEATURE_INDENT
+ "download-size=\"1000\"/>%n");
+ "arch=\"x86_64\"/>%n");
FeatureData data = newFeatureData();
String actual = toXml(data);
assertEquals(expected, actual);
Expand All @@ -58,8 +57,7 @@ public void testSerialization() throws Exception {
public void testSerializationWithLdapFilter() throws CoreException {
String expected = String.format("<data%n" + FEATURE_INDENT + "id=\"id.1\"%n" + FEATURE_INDENT + "os=\"win32\"%n"
+ FEATURE_INDENT + "arch=\"x86_64\"%n" + FEATURE_INDENT
+ "filter=\"(&amp; (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86))\"%n" + FEATURE_INDENT
+ "download-size=\"1000\"/>%n");
+ "filter=\"(&amp; (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86))\"/>%n");
FeatureData data = newFeatureData();
data.setFilter("(& (osgi.ws=win32) (osgi.os=win32) (osgi.arch=x86))");
String actual = toXml(data);
Expand Down

0 comments on commit 653f498

Please sign in to comment.