@Test public void get() { String secretName = "secretName"; HashicorpGetSecretData getSecretData = mock(HashicorpGetSecretData.class); when(getSecretData.getSecretName()).thenReturn(secretName); when(getSecretData.getSecretVersion()).thenReturn(0); Versioned versionedResponse = mock(Versioned.class); when(keyValueOperations.get(secretName, Versioned.Version.from(0))).thenReturn(versionedResponse); Versioned result = delegate.get(getSecretData); verify(keyValueOperations).get(secretName, Versioned.Version.unversioned()); assertThat(result).isEqualTo(versionedResponse); }
Versioned<Map<String, Object>> get(HashicorpGetSecretData getSecretData) { return keyValueOperations.get(getSecretData.getSecretName(), Versioned.Version.from(getSecretData.getSecretVersion())); }
KeyValueOperationsDelegate { Versioned<Map<String, Object>> get(HashicorpGetSecretData getSecretData) { return keyValueOperations.get(getSecretData.getSecretName(), Versioned.Version.from(getSecretData.getSecretVersion())); } }
KeyValueOperationsDelegate { Versioned<Map<String, Object>> get(HashicorpGetSecretData getSecretData) { return keyValueOperations.get(getSecretData.getSecretName(), Versioned.Version.from(getSecretData.getSecretVersion())); } KeyValueOperationsDelegate(VaultVersionedKeyValueOperations keyValueOperations); }
KeyValueOperationsDelegate { Versioned<Map<String, Object>> get(HashicorpGetSecretData getSecretData) { return keyValueOperations.get(getSecretData.getSecretName(), Versioned.Version.from(getSecretData.getSecretVersion())); } KeyValueOperationsDelegate(VaultVersionedKeyValueOperations keyValueOperations);  }
KeyValueOperationsDelegate { Versioned<Map<String, Object>> get(HashicorpGetSecretData getSecretData) { return keyValueOperations.get(getSecretData.getSecretName(), Versioned.Version.from(getSecretData.getSecretVersion())); } KeyValueOperationsDelegate(VaultVersionedKeyValueOperations keyValueOperations);   }