Author: mturk
Date: Fri Jul 15 11:43:48 2011
New Revision: 1147107
URL: http://svn.apache.org/viewvc?rev=1147107&view=rev
Log:
Fix test case since we only have SocketDescriptor now
Modified:
commons/sandbox/runtime/trunk/src/main/native/os/win32/inetsock.c
commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestEndpoint.java
Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/inetsock.c
URL:
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/inetsock.c?rev=1147107&r1=1147106&r2=1147107&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/inetsock.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/inetsock.c Fri Jul
15 11:43:48 2011
@@ -216,7 +216,7 @@ ACR_NET_EXPORT(jlong, SocketDescriptor,
int rc = 0;
int af = AF_UNSPEC;
int type = 0;
- SCOCKET sd;
+ SOCKET sd;
acr_sd_t *sp;
switch (stype) {
Modified:
commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestEndpoint.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestEndpoint.java?rev=1147107&r1=1147106&r2=1147107&view=diff
==============================================================================
---
commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestEndpoint.java
(original)
+++
commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestEndpoint.java
Fri Jul 15 11:43:48 2011
@@ -35,15 +35,15 @@ import org.testng.Assert;
public class TestEndpoint extends Assert
{
- @Test(groups = { "core" }, expectedExceptions = ClassCastException.class)
- public void createInvalidEndpoint()
+ @Test(groups = { "core" })
+ public void createDummyEndpoint()
throws IOException
{
SocketEndpoint se = new SocketEndpoint();
// This will throw ClassCastException
//
LocalEndpoint le = new LocalEndpoint(se.descriptor(), new
LocalEndpointAddress("dummy"));
- assertNull(le);
+ assertNotNull(le);
}
}