/**
 * MIT License
 *
 * Copyright (c) 2010 - 2020 The OSHI Project Contributors: https://github.com/oshi/oshi/graphs/contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package oshi.hardware;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import oshi.SystemInfo;

/**
 * Tests Computer System
 */
public class ComputerSystemTest {

    /**
     * Test Computer System
     */
    @Test
    public void testComputerSystem() {
        SystemInfo si = new SystemInfo();
        ComputerSystem cs = si.getHardware().getComputerSystem();
        assertNotNull(cs.getManufacturer());
        assertNotNull(cs.getModel());
        assertNotNull(cs.getSerialNumber());

        Firmware fw = cs.getFirmware();
        assertNotNull(fw);
        assertNotNull(fw.getManufacturer());
        assertNotNull(fw.getName());
        assertNotNull(fw.getDescription());
        assertNotNull(fw.getVersion());
        assertNotNull(fw.getReleaseDate());
        assertTrue(fw.toString().contains(fw.getManufacturer()));

        Baseboard bb = cs.getBaseboard();
        assertNotNull(bb);
        assertNotNull(bb.getManufacturer());
        assertNotNull(bb.getModel());
        assertNotNull(bb.getVersion());
        assertNotNull(bb.getSerialNumber());
    }
}

@@ -1661,673 +1661,1332 @@
 ull(
-cs.getManufacturer());%0A        assertNotNull(cs.getModel());%0A        assertNotNull(cs.getSerialNumber());%0A%0A        Firmware fw = cs.getFirmware();%0A        assertNotNull(fw);%0A        assertNotNull(fw.getManufacturer());%0A        assertNotNull(fw.getName());%0A        assertNotNull(fw.getDescription());%0A        assertNotNull(fw.getVersion());%0A        assertNotNull(fw.getReleaseDate());%0A        assertTrue(fw.toString().contains(fw.getManufacturer()));%0A%0A        Baseboard bb = cs.getBaseboard();%0A        assertNotNull(bb);%0A        assertNotNull(bb.getManufacturer());%0A        assertNotNull(bb.getModel());%0A        assertNotNull(bb.getVersion());%0A        assertNotNull(
+%22Computer System's manufacturer shouldn't be null%22, cs.getManufacturer());%0A        assertNotNull(%22Computer System's model shouldn't be null%22, cs.getModel());%0A        assertNotNull(%22Computer System's serial number shouldn't be null%22, cs.getSerialNumber());%0A%0A        Firmware fw = cs.getFirmware();%0A        assertNotNull(%22Firmware shouldn't be null%22, fw);%0A        assertNotNull(%22Firmware's manufacturer shouldn't be null%22, fw.getManufacturer());%0A        assertNotNull(%22Firmware's name shouldn't be null%22, fw.getName());%0A        assertNotNull(%22Firmware's description shouldn't be null%22, fw.getDescription());%0A        assertNotNull(%22Firmware's version shouldn't be null%22, fw.getVersion());%0A        assertNotNull(%22Firmware's release date shouldn't be null%22, fw.getReleaseDate());%0A        assertTrue(%22Firmware's tostring value should contain manufacturer's name%22, fw.toString().contains(fw.getManufacturer()));%0A%0A        Baseboard bb = cs.getBaseboard();%0A        assertNotNull(%22Baseboard shouldn't be null%22, bb);%0A        assertNotNull(%22Baseboard's manufacturer shouldn't be null%22, bb.getManufacturer());%0A        assertNotNull(%22Baseboard's model shouldn't be null%22, bb.getModel());%0A        assertNotNull(%22Baseboard's version shouldn't be null%22, bb.getVersion());%0A        assertNotNull(%22Baseboard's serial number shouldn't be null%22, 
 bb.g

Add messages to unit test assertions in ComputerSystemTest.java (#1224)