@Test public void shouldReturnNullWhenParameterNotFound() { when(paramProvider.load("param")).thenReturn(null); PreparedParameter preparedParameter = manager.getPreparedParameter("param"); assertThat(preparedParameter).isNull(); }
@Override public PreparedParameter getPreparedParameter(final String parameterName) { PreparedParameter preparedParameter = cache.get(parameterName); if (preparedParameter == null) { preparedParameter = requestQueue.resolve(parameterName, request); } return preparedParameter; }
BasicParameterManager implements ParameterManager { @Override public PreparedParameter getPreparedParameter(final String parameterName) { PreparedParameter preparedParameter = cache.get(parameterName); if (preparedParameter == null) { preparedParameter = requestQueue.resolve(parameterName, request); } return preparedParameter; } }
BasicParameterManager implements ParameterManager { @Override public PreparedParameter getPreparedParameter(final String parameterName) { PreparedParameter preparedParameter = cache.get(parameterName); if (preparedParameter == null) { preparedParameter = requestQueue.resolve(parameterName, request); } return preparedParameter; } BasicParameterManager(ParamPreparer preparer,
            ParameterProvider parameterProvider,
            PreparedParamCache cache,
            ParameterRequestQueue requestQueue); }
BasicParameterManager implements ParameterManager { @Override public PreparedParameter getPreparedParameter(final String parameterName) { PreparedParameter preparedParameter = cache.get(parameterName); if (preparedParameter == null) { preparedParameter = requestQueue.resolve(parameterName, request); } return preparedParameter; } BasicParameterManager(ParamPreparer preparer,
            ParameterProvider parameterProvider,
            PreparedParamCache cache,
            ParameterRequestQueue requestQueue); @Override PreparedParameter getPreparedParameter(final String parameterName); @Override List<PreparedEntry> findEntries(String paramName, String[] levelValues); }
BasicParameterManager implements ParameterManager { @Override public PreparedParameter getPreparedParameter(final String parameterName) { PreparedParameter preparedParameter = cache.get(parameterName); if (preparedParameter == null) { preparedParameter = requestQueue.resolve(parameterName, request); } return preparedParameter; } BasicParameterManager(ParamPreparer preparer,
            ParameterProvider parameterProvider,
            PreparedParamCache cache,
            ParameterRequestQueue requestQueue); @Override PreparedParameter getPreparedParameter(final String parameterName); @Override List<PreparedEntry> findEntries(String paramName, String[] levelValues);  }