mirror of https://github.com/apache/lucene.git
fix regex to ignore XML attribute order
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1537954 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4f5426ae94
commit
13da2a505a
|
@ -156,7 +156,7 @@ public class TestManagedSchemaFieldResource extends RestTestBase {
|
|||
managedSchemaContents = FileUtils.readFileToString(managedSchemaFile, "UTF-8");
|
||||
Pattern newfield2StoredTrueIndexedTrueMultiValuedTruePattern
|
||||
= Pattern.compile( "<field name=\"newfield2\" type=\"text_en\" "
|
||||
+ "(?=.*stored=\"true\")(?=.*indexed=\"true\")(?=multiValued=\"true\").*/>");
|
||||
+ "(?=.*stored=\"true\")(?=.*indexed=\"true\")(?=.*multiValued=\"true\").*/>");
|
||||
assertTrue(newfield2StoredTrueIndexedTrueMultiValuedTruePattern.matcher(managedSchemaContents).find());
|
||||
|
||||
assertQ("/schema/fields/newfield2?indent=on&wt=xml",
|
||||
|
@ -211,7 +211,7 @@ public class TestManagedSchemaFieldResource extends RestTestBase {
|
|||
managedSchemaContents = FileUtils.readFileToString(managedSchemaFile, "UTF-8");
|
||||
Pattern newfield2StoredTrueIndexedTrueMultiValuedTruePattern
|
||||
= Pattern.compile( "<field name=\"newfield2\" type=\"text_en\" "
|
||||
+ "(?=.*stored=\"true\")(?=.*indexed=\"true\")(?=multiValued=\"true\").*/>");
|
||||
+ "(?=.*stored=\"true\")(?=.*indexed=\"true\")(?=.*multiValued=\"true\").*/>");
|
||||
assertTrue(newfield2StoredTrueIndexedTrueMultiValuedTruePattern.matcher(managedSchemaContents).find());
|
||||
|
||||
assertQ("/schema/fields?indent=on&wt=xml",
|
||||
|
|
Loading…
Reference in New Issue