mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 01:51:49 +01:00
doclint fixes
This commit is contained in:
@@ -32,7 +32,7 @@ import static org.junit.Assert.*;
|
|||||||
/**
|
/**
|
||||||
* Unit tests for OpenSSLAnalyzerAnalyzer.
|
* Unit tests for OpenSSLAnalyzerAnalyzer.
|
||||||
*
|
*
|
||||||
* @author Dale Visser <dvisser@ida.org>
|
* @author Dale Visser
|
||||||
*/
|
*/
|
||||||
public class OpenSSLAnalyzerTest extends BaseTest {
|
public class OpenSSLAnalyzerTest extends BaseTest {
|
||||||
|
|
||||||
@@ -84,22 +84,15 @@ public class OpenSSLAnalyzerTest extends BaseTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testVersionConstantExamples() {
|
public void testVersionConstantExamples() {
|
||||||
final long[] constants = {0x1000203fL
|
final long[] constants = {0x1000203fL, 0x00903000, 0x00903001, 0x00903002l, 0x0090300f, 0x0090301f, 0x0090400f, 0x102031af};
|
||||||
, 0x00903000
|
|
||||||
, 0x00903001
|
|
||||||
, 0x00903002l
|
|
||||||
, 0x0090300f
|
|
||||||
, 0x0090301f
|
|
||||||
, 0x0090400f
|
|
||||||
, 0x102031af};
|
|
||||||
final String[] versions = {"1.0.2c",
|
final String[] versions = {"1.0.2c",
|
||||||
"0.9.3-dev",
|
"0.9.3-dev",
|
||||||
"0.9.3-beta1",
|
"0.9.3-beta1",
|
||||||
"0.9.3-beta2",
|
"0.9.3-beta2",
|
||||||
"0.9.3",
|
"0.9.3",
|
||||||
"0.9.3a",
|
"0.9.3a",
|
||||||
"0.9.4",
|
"0.9.4",
|
||||||
"1.2.3z"};
|
"1.2.3z"};
|
||||||
assertEquals(constants.length, versions.length);
|
assertEquals(constants.length, versions.length);
|
||||||
for (int i = 0; i < constants.length; i++) {
|
for (int i = 0; i < constants.length; i++) {
|
||||||
assertEquals(versions[i], OpenSSLAnalyzer.getOpenSSLVersion(constants[i]));
|
assertEquals(versions[i], OpenSSLAnalyzer.getOpenSSLVersion(constants[i]));
|
||||||
|
|||||||
Reference in New Issue
Block a user