@Test public void isReleaseWhenNoDashInVersion() throws Exception { when(component.version()).thenReturn("1.0.0"); assertThat(underTest.isPrerelease(component, emptyList()), is(false)); }
@Override protected boolean isPrerelease(final Component component, final Iterable<Asset> assets) { return component.version().contains("-"); }
NpmComponentMetadataProducer extends DefaultComponentMetadataProducer { @Override protected boolean isPrerelease(final Component component, final Iterable<Asset> assets) { return component.version().contains("-"); } }
NpmComponentMetadataProducer extends DefaultComponentMetadataProducer { @Override protected boolean isPrerelease(final Component component, final Iterable<Asset> assets) { return component.version().contains("-"); } @Inject  NpmComponentMetadataProducer(final Set<ComponentMetadataProducerExtension> extensions); }
NpmComponentMetadataProducer extends DefaultComponentMetadataProducer { @Override protected boolean isPrerelease(final Component component, final Iterable<Asset> assets) { return component.version().contains("-"); } @Inject  NpmComponentMetadataProducer(final Set<ComponentMetadataProducerExtension> extensions);  }
NpmComponentMetadataProducer extends DefaultComponentMetadataProducer { @Override protected boolean isPrerelease(final Component component, final Iterable<Asset> assets) { return component.version().contains("-"); } @Inject  NpmComponentMetadataProducer(final Set<ComponentMetadataProducerExtension> extensions);   }