/** * Obtain the value of an attribute * * @param key the name of the attribute * @return the value of the attribute */ public Object getAttribute(String key) { return getConfig(SqlStatements.class).getAttribute(key); }
@Test public void testGlobalDefinedAttribute() { assertThat(jdbi.getConfig(SqlStatements.class).getAttribute("foo")) .isEqualTo("bar"); // see test-context.xml }
@Test public void testAutoInstalledPlugin() { assertThat(jdbi.getConfig(SqlStatements.class).getAttribute(AutoPlugin.KEY)) .isEqualTo(AutoPlugin.VALUE); }
@Test public void testManualInstalledPlugin() { assertThat(jdbi.getConfig(SqlStatements.class).getAttribute(ManualPlugin.KEY)) .isEqualTo(ManualPlugin.VALUE); }
/** * Obtain the value of an attribute * * @param key the name of the attribute * @return the value of the attribute */ public Object getAttribute(String key) { return getConfig(SqlStatements.class).getAttribute(key); }
@Test public void testGlobalDefinedAttribute() { assertThat(jdbi.getConfig(SqlStatements.class).getAttribute("foo")) .isEqualTo("bar"); // see test-context.xml }
@Test public void testManualInstalledPlugin() { assertThat(jdbi.getConfig(SqlStatements.class).getAttribute(ManualPlugin.KEY)) .isEqualTo(ManualPlugin.VALUE); }
@Test public void testAutoInstalledPlugin() { assertThat(jdbi.getConfig(SqlStatements.class).getAttribute(AutoPlugin.KEY)) .isEqualTo(AutoPlugin.VALUE); }