You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by sm...@apache.org on 2006/06/14 09:42:14 UTC
svn commit: r414134 - in
/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization:
HandshakeCompletedEventTest.java SSLSessionBindingEventTest.java
Author: smishura
Date: Wed Jun 14 00:42:13 2006
New Revision: 414134
URL: http://svn.apache.org/viewvc?rev=414134&view=rev
Log:
Setting eol property
Modified:
incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/HandshakeCompletedEventTest.java (contents, props changed)
incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLSessionBindingEventTest.java (contents, props changed)
Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/HandshakeCompletedEventTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/HandshakeCompletedEventTest.java?rev=414134&r1=414133&r2=414134&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/HandshakeCompletedEventTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/HandshakeCompletedEventTest.java Wed Jun 14 00:42:13 2006
@@ -1,50 +1,50 @@
-/*
- * Copyright 2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package javax.net.ssl.serialization;
-
-import javax.net.ssl.HandshakeCompletedEvent;
-import javax.net.ssl.SSLContext;
-import javax.net.ssl.SSLSocket;
-
-import org.apache.harmony.security.tests.support.SerializationTest;
-
-/**
- * Test for HandshakeCompletedEvent serialization
- *
- */
-
-public class HandshakeCompletedEventTest extends SerializationTest {
-
- protected Object[] getData() {
- try {
- SSLContext cont = SSLContext.getInstance("TLS");
- cont.init(null, null, null);
- SSLSocket soc = (SSLSocket )cont.getSocketFactory().createSocket();
- return new Object[] { new HandshakeCompletedEvent(soc, soc.getSession())};
- } catch (Exception e) {
- fail("Can not create data: "+ e);
- return null;
- }
-
- }
-
- protected void assertDeserialized(Object oref, Object otest) {
- HandshakeCompletedEvent test = (HandshakeCompletedEvent) otest;
- test.getSession();
- test.getSocket();
- }
+/*
+ * Copyright 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.net.ssl.serialization;
+
+import javax.net.ssl.HandshakeCompletedEvent;
+import javax.net.ssl.SSLContext;
+import javax.net.ssl.SSLSocket;
+
+import org.apache.harmony.security.tests.support.SerializationTest;
+
+/**
+ * Test for HandshakeCompletedEvent serialization
+ *
+ */
+
+public class HandshakeCompletedEventTest extends SerializationTest {
+
+ protected Object[] getData() {
+ try {
+ SSLContext cont = SSLContext.getInstance("TLS");
+ cont.init(null, null, null);
+ SSLSocket soc = (SSLSocket )cont.getSocketFactory().createSocket();
+ return new Object[] { new HandshakeCompletedEvent(soc, soc.getSession())};
+ } catch (Exception e) {
+ fail("Can not create data: "+ e);
+ return null;
+ }
+
+ }
+
+ protected void assertDeserialized(Object oref, Object otest) {
+ HandshakeCompletedEvent test = (HandshakeCompletedEvent) otest;
+ test.getSession();
+ test.getSocket();
+ }
}
Propchange: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/HandshakeCompletedEventTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLSessionBindingEventTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLSessionBindingEventTest.java?rev=414134&r1=414133&r2=414134&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLSessionBindingEventTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLSessionBindingEventTest.java Wed Jun 14 00:42:13 2006
@@ -1,49 +1,49 @@
-/*
- * Copyright 2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package javax.net.ssl.serialization;
-
-import javax.net.ssl.SSLContext;
-import javax.net.ssl.SSLSessionBindingEvent;
-import javax.net.ssl.SSLSocket;
-
-import org.apache.harmony.security.tests.support.SerializationTest;
-
-/**
- * Test for SSLSessionBindingEvent serialization
- *
- */
-
-public class SSLSessionBindingEventTest extends SerializationTest {
-
- protected Object[] getData() {
- try {
- SSLContext cont = SSLContext.getInstance("TLS");
- cont.init(null, null, null);
- SSLSocket soc = (SSLSocket )cont.getSocketFactory().createSocket();
- return new Object[] { new SSLSessionBindingEvent(soc.getSession(), "someName")};
- } catch (Exception e) {
- fail("Can not create data: "+ e);
- return null;
- }
- }
-
- protected void assertDeserialized(Object oref, Object otest) {
- SSLSessionBindingEvent ref = (SSLSessionBindingEvent) oref;
- SSLSessionBindingEvent test = (SSLSessionBindingEvent) otest;
- assertEquals(ref.getName(), test.getName());
- }
+/*
+ * Copyright 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.net.ssl.serialization;
+
+import javax.net.ssl.SSLContext;
+import javax.net.ssl.SSLSessionBindingEvent;
+import javax.net.ssl.SSLSocket;
+
+import org.apache.harmony.security.tests.support.SerializationTest;
+
+/**
+ * Test for SSLSessionBindingEvent serialization
+ *
+ */
+
+public class SSLSessionBindingEventTest extends SerializationTest {
+
+ protected Object[] getData() {
+ try {
+ SSLContext cont = SSLContext.getInstance("TLS");
+ cont.init(null, null, null);
+ SSLSocket soc = (SSLSocket )cont.getSocketFactory().createSocket();
+ return new Object[] { new SSLSessionBindingEvent(soc.getSession(), "someName")};
+ } catch (Exception e) {
+ fail("Can not create data: "+ e);
+ return null;
+ }
+ }
+
+ protected void assertDeserialized(Object oref, Object otest) {
+ SSLSessionBindingEvent ref = (SSLSessionBindingEvent) oref;
+ SSLSessionBindingEvent test = (SSLSessionBindingEvent) otest;
+ assertEquals(ref.getName(), test.getName());
+ }
}
Propchange: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/test/java/javax/net/ssl/serialization/SSLSessionBindingEventTest.java
------------------------------------------------------------------------------
svn:eol-style = native