StandardParameters { public static boolean isStandardParamName(String paramName) { return STANDARD_PARAM_NAMES.contains(paramName); } private  StandardParameters(); static boolean isStandardParamName(String paramName); static boolean shouldPrettyPrint(EndpointsContext context); static final String ALT; static final String FIELDS; static final String KEY; static final String OAUTH_TOKEN; static final String PRETTY_PRINT; static final String QUOTA_USER; static final String USER_IP; static final ImmutableSet<String> STANDARD_PARAM_NAMES; }
@Test public void isStandardParamName() { assertThat(StandardParameters.isStandardParamName("alt")).isTrue(); assertThat(StandardParameters.isStandardParamName("fields")).isTrue(); assertThat(StandardParameters.isStandardParamName("key")).isTrue(); assertThat(StandardParameters.isStandardParamName("oauth_token")).isTrue(); assertThat(StandardParameters.isStandardParamName("prettyPrint")).isTrue(); assertThat(StandardParameters.isStandardParamName("quotaUser")).isTrue(); assertThat(StandardParameters.isStandardParamName("userIp")).isTrue(); assertThat(StandardParameters.isStandardParamName("sanityCheck")).isFalse(); }