CONSOLE is the new AUTOSENSE
This makes the test generation support both while we move from `// AUTOSENSE` to `// CONSOLE`. Will bother #18160
This commit is contained in:
parent
0f36c744d0
commit
2528934411
|
@ -110,7 +110,8 @@ public class SnippetsTask extends DefaultTask {
|
||||||
lastLanguageLine = lineNumber
|
lastLanguageLine = lineNumber
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (line ==~ /\/\/ AUTOSENSE\s*/) {
|
if (line ==~ /\/\/ AUTOSENSE\s*/
|
||||||
|
|| line ==~ /\/\/ CONSOLE\s*/) {
|
||||||
if (snippet == null) {
|
if (snippet == null) {
|
||||||
throw new InvalidUserDataException("AUTOSENSE not " +
|
throw new InvalidUserDataException("AUTOSENSE not " +
|
||||||
"paired with a snippet at $file:$lineNumber")
|
"paired with a snippet at $file:$lineNumber")
|
||||||
|
|
|
@ -14,7 +14,7 @@ PUT twitter/tweet/1
|
||||||
"message" : "trying out Elasticsearch"
|
"message" : "trying out Elasticsearch"
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// AUTOSENSE
|
// CONSOLE
|
||||||
|
|
||||||
The result of the above index operation is:
|
The result of the above index operation is:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue