You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ch...@apache.org on 2013/09/20 15:33:45 UTC

[23/59] [abbrv] Cleanup of core

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/blob/a030e42b/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/EdmSimpleTypeFacadeTest.java
----------------------------------------------------------------------
diff --git a/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/EdmSimpleTypeFacadeTest.java b/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/EdmSimpleTypeFacadeTest.java
index 233175a..39912ee 100644
--- a/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/EdmSimpleTypeFacadeTest.java
+++ b/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/EdmSimpleTypeFacadeTest.java
@@ -1,20 +1,20 @@
 /*******************************************************************************
  * Licensed to the Apache Software Foundation (ASF) under one
- *        or more contributor license agreements.  See the NOTICE file
- *        distributed with this work for additional information
- *        regarding copyright ownership.  The ASF licenses this file
- *        to you 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
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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
+ * 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.
+ * 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 org.apache.olingo.odata2.core.edm;
 
@@ -36,7 +36,7 @@ import org.junit.Test;
 
 /**
  * Tests for the parsing of URI literals
- *  
+ * 
  */
 public class EdmSimpleTypeFacadeTest extends BaseTest {
 
@@ -191,15 +191,16 @@ public class EdmSimpleTypeFacadeTest extends BaseTest {
    * to the given EDM simple type and has the correct parsed value.
    * 
    * @param literal
-   *          the URI literal value to be parsed as string
+   * the URI literal value to be parsed as string
    * @param typeKind
-   *          the {@link EdmSimpleTypeKind} the URI literal should be compatible to
+   * the {@link EdmSimpleTypeKind} the URI literal should be compatible to
    * @param expectedLiteral
-   *          the expected literal value
-   * @throws UriSyntaxException 
+   * the expected literal value
+   * @throws UriSyntaxException
    * @throws EdmException
    */
-  private void parseLiteral(final String literal, final EdmSimpleTypeKind typeKind, final String expectedLiteral) throws UriSyntaxException, EdmException {
+  private void parseLiteral(final String literal, final EdmSimpleTypeKind typeKind, final String expectedLiteral)
+      throws UriSyntaxException, EdmException {
     final EdmLiteral uriLiteral = EdmSimpleTypeKind.parseUriLiteral(literal);
 
     assertTrue(typeKind.getEdmSimpleTypeInstance().isCompatible(uriLiteral.getType()));
@@ -291,7 +292,8 @@ public class EdmSimpleTypeFacadeTest extends BaseTest {
 
   @Test
   public void parseGuid() throws Exception {
-    parseLiteral("guid'1225c695-cfb8-4ebb-aaaa-80da344efa6a'", EdmSimpleTypeKind.Guid, "1225c695-cfb8-4ebb-aaaa-80da344efa6a");
+    parseLiteral("guid'1225c695-cfb8-4ebb-aaaa-80da344efa6a'", EdmSimpleTypeKind.Guid,
+        "1225c695-cfb8-4ebb-aaaa-80da344efa6a");
   }
 
   @Test
@@ -307,7 +309,8 @@ public class EdmSimpleTypeFacadeTest extends BaseTest {
   @Test
   public void parseDatetimeOffset() throws Exception {
     parseLiteral("datetimeoffset'2009-12-26T21:23:38Z'", EdmSimpleTypeKind.DateTimeOffset, "2009-12-26T21:23:38Z");
-    parseLiteral("datetimeoffset'2002-10-10T12:00:00-05:00'", EdmSimpleTypeKind.DateTimeOffset, "2002-10-10T12:00:00-05:00");
+    parseLiteral("datetimeoffset'2002-10-10T12:00:00-05:00'", EdmSimpleTypeKind.DateTimeOffset,
+        "2002-10-10T12:00:00-05:00");
     parseLiteral("datetimeoffset'2009-12-26T21:23:38'", EdmSimpleTypeKind.DateTimeOffset, "2009-12-26T21:23:38");
   }
 
@@ -359,7 +362,8 @@ public class EdmSimpleTypeFacadeTest extends BaseTest {
     parseWrongLiteralContent("time'3'", EdmLiteralException.LITERALFORMAT);
   }
 
-  private void parseIncompatibleLiteralContent(final String literal, final EdmSimpleTypeKind typeKind) throws EdmLiteralException {
+  private void parseIncompatibleLiteralContent(final String literal, final EdmSimpleTypeKind typeKind)
+      throws EdmLiteralException {
     final EdmLiteral uriLiteral = EdmSimpleTypeKind.parseUriLiteral(literal);
     assertFalse(typeKind.getEdmSimpleTypeInstance().isCompatible(uriLiteral.getType()));
   }