OpenSearch/modules/ingest-common
Nik Everett bc45d10e82 Remove most usages of 1-arg Script ctor (#24325)
The one argument ctor for `Script` creates a script with the
default language but most usages of are for testing and either
don't care about the language or are for use with
`MockScriptEngine`. This replaces most usages of the one argument
ctor on `Script` with calls to `ESTestCase#mockScript` to make
it clear that the tests don't need the default scripting language.

I've also factored out some copy and pasted script generation
code into a single place. I would have had to change that code
to use `mockScript` anyway, so it was easier to perform the
refactor.

Relates to #16314
2017-04-26 16:04:38 -04:00
..
licenses ingest: Move processors from core to ingest-common module. 2016-06-07 17:32:52 +02:00
src Remove most usages of 1-arg Script ctor (#24325) 2017-04-26 16:04:38 -04:00
build.gradle ingest: merged o.e.ingest.core with o.e.ingest and in ingest-common module added o.e.ingest.common package 2016-06-21 09:24:00 +02:00