Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.github.tests/src/org/eclipse/mylyn/github/internal/IssueTest.java')
-rwxr-xr-xorg.eclipse.mylyn.github.tests/src/org/eclipse/mylyn/github/internal/IssueTest.java106
1 files changed, 53 insertions, 53 deletions
diff --git a/org.eclipse.mylyn.github.tests/src/org/eclipse/mylyn/github/internal/IssueTest.java b/org.eclipse.mylyn.github.tests/src/org/eclipse/mylyn/github/internal/IssueTest.java
index f52e8887..65d0673b 100755
--- a/org.eclipse.mylyn.github.tests/src/org/eclipse/mylyn/github/internal/IssueTest.java
+++ b/org.eclipse.mylyn.github.tests/src/org/eclipse/mylyn/github/internal/IssueTest.java
@@ -1,53 +1,53 @@
-/*******************************************************************************
- * Copyright (c) 2011 Christian Trutz
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Christian Trutz - initial API and implementation
- *******************************************************************************/
-package org.eclipse.mylyn.github.internal;
-
-import static org.junit.Assert.assertTrue;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.runners.MockitoJUnitRunner;
-
-import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
-
-/**
- * Unit tests for {@link Issue}
- */
-@SuppressWarnings("restriction")
-@RunWith(MockitoJUnitRunner.class)
-public class IssueTest {
-
- private static final Gson gson = new GsonBuilder().setDateFormat(
- "yyyy-MM-dd").create();
-
- @Test
- public void getCreatedAt_ReferenceMutableObject() {
- Issue issue = gson.fromJson("{createdAt : '2003-10-10'}", Issue.class);
- issue.getCreatedAt().setTime(0);
- assertTrue(issue.getCreatedAt().getTime() != 0);
- }
-
- @Test
- public void getUpdatedAt_ReferenceMutableObject() {
- Issue issue = gson.fromJson("{updatedAt : '2003-10-10'}", Issue.class);
- issue.getUpdatedAt().setTime(0);
- assertTrue(issue.getUpdatedAt().getTime() != 0);
- }
-
- @Test
- public void getClosedAt_ReferenceMutableObject() {
- Issue issue = gson.fromJson("{closedAt : '2003-10-10'}", Issue.class);
- issue.getClosedAt().setTime(0);
- assertTrue(issue.getClosedAt().getTime() != 0);
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2011 Christian Trutz
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Christian Trutz - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.mylyn.github.internal;
+
+import static org.junit.Assert.assertTrue;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.runners.MockitoJUnitRunner;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+
+/**
+ * Unit tests for {@link Issue}
+ */
+@SuppressWarnings("restriction")
+@RunWith(MockitoJUnitRunner.class)
+public class IssueTest {
+
+ private static final Gson gson = new GsonBuilder().setDateFormat(
+ "yyyy-MM-dd").create();
+
+ @Test
+ public void getCreatedAt_ReferenceMutableObject() {
+ Issue issue = gson.fromJson("{createdAt : '2003-10-10'}", Issue.class);
+ issue.getCreatedAt().setTime(0);
+ assertTrue(issue.getCreatedAt().getTime() != 0);
+ }
+
+ @Test
+ public void getUpdatedAt_ReferenceMutableObject() {
+ Issue issue = gson.fromJson("{updatedAt : '2003-10-10'}", Issue.class);
+ issue.getUpdatedAt().setTime(0);
+ assertTrue(issue.getUpdatedAt().getTime() != 0);
+ }
+
+ @Test
+ public void getClosedAt_ReferenceMutableObject() {
+ Issue issue = gson.fromJson("{closedAt : '2003-10-10'}", Issue.class);
+ issue.getClosedAt().setTime(0);
+ assertTrue(issue.getClosedAt().getTime() != 0);
+ }
+
+}

Back to the top