Fix sonarqube issues
This commit is contained in:
@@ -1,28 +1,7 @@
|
|||||||
//JavaClasses/src/test/java/com/mattrixwv/TestTriple.java
|
|
||||||
//Mattrixwv
|
|
||||||
// Created: 08-20-22
|
|
||||||
//Modified: 04-13-23
|
|
||||||
/*
|
|
||||||
Copyright (C) 2023 Matthew Ellison
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU Lesser General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package com.mattrixwv;
|
package com.mattrixwv;
|
||||||
|
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
|
||||||
|
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
@@ -40,6 +19,8 @@ public class TestTriple{
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testConstructor(){
|
public void testConstructor(){
|
||||||
|
triple = new Triple<>(1L, 2L, 3L);
|
||||||
|
|
||||||
assertEquals(1L, triple.getA());
|
assertEquals(1L, triple.getA());
|
||||||
assertEquals(2L, triple.getB());
|
assertEquals(2L, triple.getB());
|
||||||
assertEquals(3L, triple.getC());
|
assertEquals(3L, triple.getC());
|
||||||
|
|||||||
Reference in New Issue
Block a user