com.eurotech.framework.linux.test.net
Class NetworkTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.eurotech.framework.linux.test.net.NetworkTest
All Implemented Interfaces:
junit.framework.Test, org.osgi.service.event.EventHandler

public class NetworkTest
extends junit.framework.TestCase
implements org.osgi.service.event.EventHandler


Constructor Summary
NetworkTest()
           
 
Method Summary
 void handleEvent(org.osgi.service.event.Event event)
           
 void setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
           
 void setNetworkService(NetworkService networkService)
           
 void setSystemService(SystemService systemService)
           
 void setUp()
          This is for an Ubuntu laptop with Network Manager.
 void testConnectionManager()
           
 void testNetworkManager()
           
 void testServiceExists()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkTest

public NetworkTest()
Method Detail

setUp

public void setUp()
This is for an Ubuntu laptop with Network Manager. The hardware profile assumes: LAN1 - onboard ethernet controller intiially disabled WIFI1 - onboard Wifi device initially acting as the WAN interface via DHCP LAN2 - USB/Ethernet controller initially disabled WIFI2 - USB/Wifi devices initially disabled * Ethernet cable connects LAN1 to LAN2

Overrides:
setUp in class junit.framework.TestCase

setNetworkService

public void setNetworkService(NetworkService networkService)

setSystemService

public void setSystemService(SystemService systemService)

setEventAdmin

public void setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)

testServiceExists

public void testServiceExists()

testConnectionManager

public void testConnectionManager()

testNetworkManager

public void testNetworkManager()

handleEvent

public void handleEvent(org.osgi.service.event.Event event)
Specified by:
handleEvent in interface org.osgi.service.event.EventHandler


Copyright © 2013. All Rights Reserved.