To run a standalone test, run the GpsNmeaTransportTest in Eclipse. The output should resemble the following trace:
[INFO] 2004-11-10 16:16:49.489 - TransportTest4008: Transport test started.
transport test: GpsNmeaTransportTest@39d539d5{testcount=2, testdelay=0}
transport: GpsNmeaTransport@5b965b96{state=CREATED}
connection: null
[INFO] 2004-11-10 16:16:49.499 - TransportTest4002: Received transport changed notification to the ALIVE state.
transport test: GpsNmeaTransportTest@39d539d5{testcount=2, testdelay=0}
old state: CREATED
transport: GpsNmeaTransport@5b965b96{state=ALIVE}
connection: null
[INFO] 2004-11-10 16:16:49.529 - TransportTest4003: Received transport changed notification to the CONNECTED state.
transport test: GpsNmeaTransportTest@39d539d5{testcount=2, testdelay=0}
old state: ALIVE
transport: GpsNmeaTransport@5b965b96{state=CONNECTED}
connection: SerialConnection[COM1,4800,8,0,0,0,0,1000,50,100,open]
[INFO] 2004-11-10 16:16:49.529 - TransportTest4004: Received transport changed notification to the ACTIVE state.
transport test: GpsNmeaTransportTest@39d539d5{testcount=2, testdelay=0}
old state: CONNECTED
transport: GpsNmeaTransport@5b965b96{state=ACTIVE}
connection: SerialConnection[COM1,4800,8,0,0,0,0,1000,50,100,open]
[INFO] 2004-11-10 16:16:49.529 - TransportTest4010: Transport test still waiting for transport to start.
transport test: GpsNmeaTransportTest@39d539d5{testcount=2, testdelay=0}
transport: GpsNmeaTransport@5b965b96{state=ACTIVE}
connection: SerialConnection[COM1,4800,8,0,0,0,0,1000,50,100,open]
delta time: 0
[INFO] 2004-11-10 16:16:49.539 - Transport2005: Transport changed to the STARTED state.
transport: GpsNmeaTransport@5b965b96{state=STARTED}
class: org.eclipse.soda.dk.gps.nmea.transport.GpsNmeaTransport
connection: SerialConnection[COM1,4800,8,0,0,0,0,1000,50,100,open]
[INFO] 2004-11-10 16:16:49.539 - TransportTest4005: Received transport changed notification to the STARTED state.
transport test: GpsNmeaTransportTest@39d539d5{testcount=2, testdelay=0}
old state: ACTIVE
transport: GpsNmeaTransport@5b965b96{state=STARTED}
connection: SerialConnection[COM1,4800,8,0,0,0,0,1000,50,100,open]
[INFO] 2004-11-10 16:16:49.539 - TransportTest4012: Transport test execution started.
transport test: GpsNmeaTransportTest@39d539d5{testcount=2, testdelay=0}
transport: GpsNmeaTransport@5b965b96{state=STARTED}
connection: SerialConnection[COM1,4800,8,0,0,0,0,1000,50,100,open]
[INFO] 2004-11-10 16:16:49.539 - TransportTest4013: Transport test execution stoped.
transport test: GpsNmeaTransportTest@39d539d5{testcount=2, testdelay=0}
transport: GpsNmeaTransport@5b965b96{state=STARTED}
connection: SerialConnection[COM1,4800,8,0,0,0,0,1000,50,100,open]
[INFO] 2004-11-10 16:16:50.550 - TransportTest4007: Received transport message notification.
transport test: GpsNmeaTransportTest@39d539d5{testcount=2, testdelay=0}
message: ""$GPRMC,161314,V,3547.4888,N,07842.1003,W,0.0,0.0,090704,8.7,W,S*19\r\n""
transport: GpsNmeaTransport@5b965b96{state=STARTED}
connection: SerialConnection[COM1,4800,8,0,0,0,0,1000,50,100,open]
[INFO] 2004-11-10 16:16:50.550 - TransportTest4007: Received transport message notification.
transport test: GpsNmeaTransportTest@39d539d5{testcount=2, testdelay=0}
message: ""$GPRMB,V,,,,,,,,,,,,A,S*0E\r\n""
transport: GpsNmeaTransport@5b965b96{state=STARTED}
connection: SerialConnection[COM1,4800,8,0,0,0,0,1000,50,100,open]
[INFO] 2004-11-10 16:16:50.550 - TransportTest4007: Received transport message notification.
transport test: GpsNmeaTransportTest@39d539d5{testcount=2, testdelay=0}
message: ""$GPGGA,161314,3547.4888,N,07842.1003,W,8,00,2.0,181.7,M,-33.8,M,,*73\r\n""
transport: GpsNmeaTransport@5b965b96{state=STARTED}
connection: SerialConnection[COM1,4800,8,0,0,0,0,1000,50,100,open]
© Copyright 2001, 2007 IBM Corporation and others.