package com.github.aureliano.achmed.os;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import com.github.aureliano.achmed.os.pkg.IPackageManager;
import com.github.aureliano.achmed.types.OperatingSystemFamily;

public class LinuxTest {

	@Test
	public void testGetPsCommand() {
		final String cmd = "ps -ef";
		assertEquals(cmd, this.createDefaultOs().getPsCommand());
	}
	
	private Linux createDefaultOs() {
		return new Linux() {
			
			public OperatingSystemFamily getOperatingSystemFamily() {
				return null;
			}
			
			public IPackageManager getDefaultPackageManager() {
				return null;
			}
		};
	}
}
@@ -163,16 +163,61 @@
 anager;%0A
+import com.github.aureliano.achmed.types.OS;%0A
 import c
@@ -299,16 +299,217 @@
 Test %7B%0A%0A
+%09private Linux linux;%0A%09%0A%09public LinuxTest() %7B%0A%09%09this.linux = this.createDefaultOs();%0A%09%7D%0A%09%0A%09@Test%0A%09public void testGetOperatingSystem() %7B%0A%09%09assertEquals(OS.LINUX, this.linux.getOperatingSystem());%0A%09%7D%0A%09%0A
 %09@Test%0A%09
@@ -597,33 +597,21 @@
 d, this.
-createDefaultOs()
+linux
 .getPsCo

Add unit test to get operating system method.