@Test void testSingleValidAttributes() { context.request().setAttribute("categories", CATEGORY_SINGLE); context.request().setAttribute("async", true); context.request().setAttribute("crossorigin", "anonymous"); context.request().setAttribute("defer", true); context.request().setAttribute("integrity", "value1"); context.request().setAttribute("nomodule", true); context.request().setAttribute("nonce", "value2"); context.request().setAttribute("referrerpolicy", "no-referrer"); context.request().setAttribute("type", "module"); JSInclude underTest = AdaptTo.notNull(context.request(), JSInclude.class); assertEquals("<script src=\"/etc/clientlibs/app1/clientlib1.min.js\" " + "async crossorigin=\"anonymous\" defer integrity=\"value1\" " + "nomodule nonce=\"value2\" referrerpolicy=\"no-referrer\" type=\"module\">" + "</script>\n", underTest.getInclude()); }
public @Nullable String getInclude() { return include; }
JSInclude { public @Nullable String getInclude() { return include; } }
JSInclude { public @Nullable String getInclude() { return include; }  }
JSInclude { public @Nullable String getInclude() { return include; }  @Nullable String getInclude(); }
JSInclude { public @Nullable String getInclude() { return include; }  @Nullable String getInclude();  }