@Test public void addFromSourceLookupShouldNotAddNullCoordinates() { when(mavenPath.getCoordinates()).thenReturn(null); mavenVariableResolverAdapter.addFromSourceLookup(builder, null, asset); verify(builder, never()).addResolver(any(VariableResolver.class)); }
@Override protected void addFromSourceLookup( final VariableSourceBuilder builder, final SourceLookup sourceLookup, final Map<String, Object> asset) { addMavenCoordinates(builder, (String) asset.get(NAME)); }
MavenVariableResolverAdapter extends VariableResolverAdapterSupport { @Override protected void addFromSourceLookup( final VariableSourceBuilder builder, final SourceLookup sourceLookup, final Map<String, Object> asset) { addMavenCoordinates(builder, (String) asset.get(NAME)); } }
MavenVariableResolverAdapter extends VariableResolverAdapterSupport { @Override protected void addFromSourceLookup( final VariableSourceBuilder builder, final SourceLookup sourceLookup, final Map<String, Object> asset) { addMavenCoordinates(builder, (String) asset.get(NAME)); } @Inject  MavenVariableResolverAdapter(@Named(Maven2Format.NAME) final MavenPathParser mavenPathParser); }
MavenVariableResolverAdapter extends VariableResolverAdapterSupport { @Override protected void addFromSourceLookup( final VariableSourceBuilder builder, final SourceLookup sourceLookup, final Map<String, Object> asset) { addMavenCoordinates(builder, (String) asset.get(NAME)); } @Inject  MavenVariableResolverAdapter(@Named(Maven2Format.NAME) final MavenPathParser mavenPathParser);  }
MavenVariableResolverAdapter extends VariableResolverAdapterSupport { @Override protected void addFromSourceLookup( final VariableSourceBuilder builder, final SourceLookup sourceLookup, final Map<String, Object> asset) { addMavenCoordinates(builder, (String) asset.get(NAME)); } @Inject  MavenVariableResolverAdapter(@Named(Maven2Format.NAME) final MavenPathParser mavenPathParser);   }