Skip to content

Commit

Permalink
fix: coding style glitches
Browse files Browse the repository at this point in the history
Signed-off-by: san-zrl <[email protected]>
  • Loading branch information
san-zrl committed Oct 4, 2024
1 parent 0a578df commit 279450c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/test/java/org/dependencytrack/model/CipherSuiteTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ public void testCipherSuite() {
"crypto/algorithm/[email protected]"
);
List<String> identifiers = List.of("a", "b", "c", "d");
String location = "httpclient/src/main/java/org/apache/http/impl/auth/NTLMEngineImpl.java";
String addittionalContext = "javax.crypto.spec.SecretKeySpec#<init>([BLjava/lang/String;)V";
String bomRef = "471d7b60-0e38-4373-9e66-799d9fbea5de";
cs.setAlgorithms(algorithms);
cs.setName(name);
cs.setIdentifiers(identifiers);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void testConvertCycloneDX1() throws MalformedPackageURLException {
.withType("maven").withNamespace("acme").withName("product").withVersion("1.0").build();
component.setPurl(purl);

org.cyclonedx.model.Property property = new Property();
Property property = new Property();
property.setName("testName");
property.setValue("testValue");
component.setProperties(List.of(property));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private Component persistCryptoAsset() {
}

@Test
public void TestGetAllCryptoAssets() {
public void testGetAllCryptoAssets() {
Component component = persistCryptoAsset();
List<Component> components = qm.getAllCryptoAssets();
assertThat(components).isNotNull();
Expand All @@ -74,7 +74,7 @@ public void TestGetAllCryptoAssets() {
}

@Test
public void TestGetAllCryptoAssetsPerProject() {
public void testGetAllCryptoAssetsPerProject() {
Component component = persistCryptoAsset();
List<Component> components = qm.getAllCryptoAssets(component.getProject());
assertThat(components).isNotNull();
Expand All @@ -86,7 +86,7 @@ public void TestGetAllCryptoAssetsPerProject() {
}

@Test
public void TestGetAllCryptoAssetByIdentity() {
public void testGetAllCryptoAssetByIdentity() {
Component component = persistCryptoAsset();
List<Component> components = qm.getCryptoAssets(new ComponentIdentity(AssetType.ALGORITHM)).getList(Component.class);
assertThat(components).isNotNull();
Expand Down

0 comments on commit 279450c

Please sign in to comment.