/*
 * Examples for Java
 *
 * Copyright (c) 2021. Elex. All Rights Reserved.
 * https://www.elex-project.com/
 */

package kr.pe.elex.examples;

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;

@Slf4j
public class SysInfoTest {
	/*@Test
	public void testProcessorInfo(){
		ProcessorInfo info = HardwareInfo.getProcessorInfo();
		L.i("getModelName", info.getModelName());
		L.i("getStepping", info.getStepping());
		L.i("getCacheSize", info.getCacheSize());
		L.i("getFamily", info.getFamily());
		L.i("getVendorId", info.getVendorId());
		L.i("getNumCores", info.getNumCores());
		L.i("getMhz", info.getMhz());
		L.i("getTemperature", info.getTemperature());
	}

	@Test
	public void testBiosInfo(){
		BiosInfo info = HardwareInfo.getBiosInfo();
		L.i("getManufacturer", info.getManufacturer());
		L.i("getVersion", info.getVersion());
		L.i("getDate", info.getDate());
	}

	@Test
	public void testMotherboardInfo(){
		MotherboardInfo info = HardwareInfo.getMotherboardInfo();
		L.i("getManufacturer", info.getManufacturer());
		L.i("getVersion", info.getVersion());
		L.i("Name", info.getName());
	}

	@Test
	public void testOSInfo(){
		OSInfo info = HardwareInfo.getOSInfo();
		L.i("getName", info.getName());
		L.i("getManufacturer", info.getManufacturer());
		L.i("getVersion", info.getVersion());
		L.i("getLastBootTime", info.getLastBootTime());
	}

	@Test
	public void testMemoryInfo(){
		MemoryInfo info = HardwareInfo.getMemoryInfo();
		L.i("getTotalMemory", info.getTotalMemory());
		L.i("getAvailableMemory", info.getAvailableMemory());
		L.i("getFreeMemory", info.getFreeMemory());
	}

	@Test
	public void testNetworkInfo(){
		NetworkInfo info = HardwareInfo.getNetworkInfo();
		NetworkInterfaceInfo networkInterface = info.getNetworkInterfaces().get(0);
		L.i("getName", networkInterface.getName());
		L.i("getType", networkInterface.getType());
		L.i("getIpv4", networkInterface.getIpv4());
		L.i("getIpv6", networkInterface.getIpv6());
		L.i("getReceivedBytes", networkInterface.getReceivedBytes());
		L.i("getTransmittedBytes", networkInterface.getTransmittedBytes());
	}*/
}
