Skip to content

Commit c635b3c

Browse files
committed
Fix test build
1 parent 52ccae8 commit c635b3c

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/org/labkey/test/BaseWebDriverTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ public abstract class BaseWebDriverTest extends LabKeySiteWrapper implements Cle
215215

216216
public static final double DELTA = 10E-10;
217217

218+
@Deprecated // Going away soon
219+
public static final String[] ILLEGAL_QUERY_KEY_CHARACTERS = FieldKey.getIllegalChars().toArray(new String[0]);
218220
public static final String ALL_ILLEGAL_QUERY_KEY_CHARACTERS = StringUtils.join(FieldKey.getIllegalChars(), "");
219221
// See TSVWriter.shouldQuote. Generally we are not able to use the tab and new line characters when creating field names in the UI, but including here for completeness
220222
public static final String[] TRICKY_IMPORT_FIELD_CHARACTERS = {"\\", "\"", "\\t", ",", "\\n", "\\r"};

src/org/labkey/test/util/data/TestDataUtils.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.labkey.serverapi.reader.TabLoader;
1515
import org.labkey.test.TestFileUtils;
1616
import org.labkey.test.params.FieldDefinition;
17+
import org.labkey.test.util.EscapeUtil;
1718
import org.labkey.test.util.TestDataGenerator;
1819
import org.labkey.test.util.TestLogger;
1920

@@ -512,4 +513,10 @@ protected boolean shouldQuote(String value)
512513
return StringUtils.containsAny(value, _escapedChars);
513514
}
514515
}
516+
517+
@Deprecated // Going away soon
518+
public static String getEscapedNameExpression(String name)
519+
{
520+
return EscapeUtil.escapeForNameExpression(name);
521+
}
515522
}

0 commit comments

Comments
 (0)