Skip to content

Commit ca15673

Browse files
[MIN] JUnit tests fixed
1 parent 80a873c commit ca15673

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

basex-core/src/test/java/org/basex/query/up/AtomicUpdatesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public final class AtomicUpdatesTest extends SandboxTest {
4848
query(transform("<doc><tree1 a='0'>text1<a/><!--comm1--><a/><?p1 i1?><?p11?></tree1></doc> ",
4949
"replace node $input//tree1 with " +
5050
"<tree2 b='1'>text2<a/><!--comm2--><a/><?p2 i2?><?p22?></tree2>"),
51-
"<doc><tree2 b=\"1\">text2<a/><!--comm2--><a/><?p2 i2?><?p22 ?></tree2></doc>");
51+
"<doc><tree2 b=\"1\">text2<a/><!--comm2--><a/><?p2 i2?><?p22?></tree2></doc>");
5252
// LAZY REPLACE: 2 value updates (single attribute)
5353
query(transform("<doc><tree id1=\"0\"/></doc>",
5454
"replace node $input//@id1 with attribute id2 {\"1\"}"),

basex-core/src/test/java/org/basex/query/up/MultiUpdateTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,22 @@ public final class MultiUpdateTest extends SandboxTest {
6565

6666
/** Rename processing instructions. */
6767
@Test public void renamePIs() {
68-
final String input = "<xml><?old ?><?old ?></xml>";
68+
final String input = "<xml><?old?><?old?></xml>";
6969
query(input + " update { rename nodes ./processing-instruction(unknown) as 'new' }",
7070
input);
7171
query(input + " update { rename nodes head(./processing-instruction()) as 'new' }",
72-
"<xml><?new ?><?old ?></xml>");
72+
"<xml><?new?><?old?></xml>");
7373
query(input + " update { rename nodes tail(./processing-instruction()) as 'new' }",
74-
"<xml><?old ?><?new ?></xml>");
74+
"<xml><?old?><?new?></xml>");
7575
query(input + " update { rename nodes ./processing-instruction() as 'new' }",
76-
"<xml><?new ?><?new ?></xml>");
76+
"<xml><?new?><?new?></xml>");
7777
}
7878

7979
/** Rename mixed nodes. */
8080
@Test public void renameMixed() {
81-
final String input = "<element attribute=''><?pi ?></element>";
81+
final String input = "<element attribute=''><?pi?></element>";
8282
query(input + " update { rename nodes (., @*, node()) as 'new' }",
83-
"<new new=\"\"><?new ?></new>");
83+
"<new new=\"\"><?new?></new>");
8484
}
8585

8686
/** Rename: errors. */
@@ -154,7 +154,7 @@ public final class MultiUpdateTest extends SandboxTest {
154154

155155
/** Replace mixed nodes. */
156156
@Test public void replaceMixed() {
157-
final String input = "<xml><element attribute=''/><?pi ?></xml>";
157+
final String input = "<xml><element attribute=''/><?pi?></xml>";
158158
query(input + " update { replace nodes ./node() with <new/> }",
159159
"<xml><new/><new/></xml>");
160160
query(input + " update { replace nodes ./node() with 'new' }",
@@ -199,9 +199,9 @@ public final class MultiUpdateTest extends SandboxTest {
199199

200200
/** Replace value of other nodes. */
201201
@Test public void replaceValueOfOthers() {
202-
final String input = "<xml><!--X--><?pi ?></xml>";
202+
final String input = "<xml><!--X--><?pi?></xml>";
203203
query(input + " update { replace value of nodes comment() with 'NEW' }",
204-
"<xml><!--NEW--><?pi ?></xml>");
204+
"<xml><!--NEW--><?pi?></xml>");
205205
query(input + " update { replace value of nodes processing-instruction() with 'NEW' }",
206206
"<xml><!--X--><?pi NEW?></xml>");
207207
query(input + " update { replace value of nodes node() with 'NEW' }",

0 commit comments

Comments
 (0)