Skip to content
Snippets Groups Projects
Commit caa7f8be authored by gmantele's avatar gmantele
Browse files

[ADQL] Relax JUnit test on an incorrect character in an ADQL query:

with a different local charset, the error message will print differently the
incorrect character.
parent fe3d904e
No related branches found
No related tags found
No related merge requests found
...@@ -166,7 +166,7 @@ public class TestADQLParser { ...@@ -166,7 +166,7 @@ public class TestADQLParser {
(new ADQLParser()).parseQuery("select grégory FROM aTable"); (new ADQLParser()).parseQuery("select grégory FROM aTable");
}catch(Throwable t){ }catch(Throwable t){
assertEquals(ParseException.class, t.getClass()); assertEquals(ParseException.class, t.getClass());
assertEquals("Incorrect character encountered at l.1, c.10: \"\\u00e9\" ('é'), after : \"\"", t.getMessage()); assertTrue(t.getMessage().startsWith("Incorrect character encountered at l.1, c.10: \"\\u00e9\" ('"));
} }
// But in a string, delimited identifier or a comment, it is fine: // But in a string, delimited identifier or a comment, it is fine:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment