File tree 1 file changed +30
-0
lines changed
modules/lang-painless/src/test/java/org/elasticsearch/painless
1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+
9
+ package org .elasticsearch .painless ;
10
+
11
+ import org .elasticsearch .painless .spi .Whitelist ;
12
+ import org .elasticsearch .test .ESTestCase ;
13
+
14
+ import java .util .List ;
15
+
16
+ import static org .hamcrest .Matchers .empty ;
17
+ import static org .hamcrest .Matchers .is ;
18
+ import static org .hamcrest .Matchers .not ;
19
+
20
+ public class PainlessPluginTests extends ESTestCase {
21
+
22
+ /**
23
+ * The {@link PainlessPlugin#baseWhiteList()} signature is relied on from outside
24
+ * the Elasticsearch code-base and is considered part of the plugin's external API.
25
+ */
26
+ public void testBaseWhiteList () {
27
+ final List <Whitelist > baseWhiteList = PainlessPlugin .baseWhiteList ();
28
+ assertThat (baseWhiteList , is (not (empty ())));
29
+ }
30
+ }
You can’t perform that action at this time.
0 commit comments