maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1710542 - /maven/plugins/trunk/maven-changes-plugin/src/test/java/org/apache/maven/plugin/github/GitHubDownloaderTestCase.java
Date Mon, 26 Oct 2015 09:52:21 GMT
Author: olamy
Date: Mon Oct 26 09:52:21 2015
New Revision: 1710542

URL: http://svn.apache.org/viewvc?rev=1710542&view=rev
Log:
apply maven format

Modified:
    maven/plugins/trunk/maven-changes-plugin/src/test/java/org/apache/maven/plugin/github/GitHubDownloaderTestCase.java

Modified: maven/plugins/trunk/maven-changes-plugin/src/test/java/org/apache/maven/plugin/github/GitHubDownloaderTestCase.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/test/java/org/apache/maven/plugin/github/GitHubDownloaderTestCase.java?rev=1710542&r1=1710541&r2=1710542&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/test/java/org/apache/maven/plugin/github/GitHubDownloaderTestCase.java
(original)
+++ maven/plugins/trunk/maven-changes-plugin/src/test/java/org/apache/maven/plugin/github/GitHubDownloaderTestCase.java
Mon Oct 26 09:52:21 2015
@@ -1,20 +1,14 @@
 /*
- * Licensed to Elasticsearch under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch 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
+ * Licensed to Elasticsearch under one or more contributor license agreements. See the NOTICE
file distributed with this
+ * work for additional information regarding copyright ownership. Elasticsearch 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.maven.plugin.github;
@@ -27,32 +21,35 @@ import org.eclipse.egit.github.core.User
 
 import java.io.IOException;
 
-public class GitHubDownloaderTestCase extends TestCase {
-    public void testCreateIssue() throws IOException {
+public class GitHubDownloaderTestCase
+    extends TestCase
+{
+
+    public void testCreateIssue()
+        throws IOException
+    {
 
         MavenProject mavenProject = new MavenProject();
         IssueManagement issueManagement = new IssueManagement();
-        issueManagement.setSystem("GitHub");
-        issueManagement.setUrl("https://github.com/dadoonet/spring-elasticsearch/issues/");
-        mavenProject.setIssueManagement(issueManagement);
-
-        GitHubDownloader gitHubDownloader = new GitHubDownloader(
-                mavenProject, "https", 80, true, false
-        );
+        issueManagement.setSystem( "GitHub" );
+        issueManagement.setUrl( "https://github.com/dadoonet/spring-elasticsearch/issues/"
);
+        mavenProject.setIssueManagement( issueManagement );
+
+        GitHubDownloader gitHubDownloader = new GitHubDownloader( mavenProject, "https",
80, true, false );
 
         org.eclipse.egit.github.core.Issue githubIssue = new org.eclipse.egit.github.core.Issue();
-        githubIssue.setNumber(1);
-        githubIssue.setBody("Body");
-        githubIssue.setTitle("Title");
+        githubIssue.setNumber( 1 );
+        githubIssue.setBody( "Body" );
+        githubIssue.setTitle( "Title" );
         User user = new User();
-        githubIssue.setUser(user);
+        githubIssue.setUser( user );
 
-        Issue issue = gitHubDownloader.createIssue(githubIssue);
+        Issue issue = gitHubDownloader.createIssue( githubIssue );
 
-        assertEquals(Integer.toString(githubIssue.getNumber()), issue.getId());
-        assertEquals(Integer.toString(githubIssue.getNumber()), issue.getKey());
-        assertEquals(githubIssue.getTitle(), issue.getTitle());
-        assertEquals(githubIssue.getBody(), issue.getSummary());
-        assertEquals(issueManagement.getUrl()+githubIssue.getNumber(), issue.getLink());
+        assertEquals( Integer.toString( githubIssue.getNumber() ), issue.getId() );
+        assertEquals( Integer.toString( githubIssue.getNumber() ), issue.getKey() );
+        assertEquals( githubIssue.getTitle(), issue.getTitle() );
+        assertEquals( githubIssue.getBody(), issue.getSummary() );
+        assertEquals( issueManagement.getUrl() + githubIssue.getNumber(), issue.getLink()
);
     }
 }



Mime
View raw message