Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
ab045070
Commit
ab045070
authored
6 years ago
by
Greg Messner
Browse files
Options
Download
Email Patches
Plain Diff
Minor code cleanup.
parent
a9514049
Changes
33
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
src/test/java/org/gitlab4j/api/TestProjectApiSnippets.java
+1
-1
src/test/java/org/gitlab4j/api/TestProjectApiSnippets.java
src/test/java/org/gitlab4j/api/TestProtectedBranchesApi.java
+1
-1
src/test/java/org/gitlab4j/api/TestProtectedBranchesApi.java
src/test/java/org/gitlab4j/api/TestRepositoryApi.java
+1
-1
src/test/java/org/gitlab4j/api/TestRepositoryApi.java
src/test/java/org/gitlab4j/api/TestRepositoryFileApi.java
+1
-1
src/test/java/org/gitlab4j/api/TestRepositoryFileApi.java
src/test/java/org/gitlab4j/api/TestRequestResponseLogging.java
+1
-1
...est/java/org/gitlab4j/api/TestRequestResponseLogging.java
src/test/java/org/gitlab4j/api/TestRunnersApi.java
+1
-1
src/test/java/org/gitlab4j/api/TestRunnersApi.java
src/test/java/org/gitlab4j/api/TestServicesApi.java
+1
-1
src/test/java/org/gitlab4j/api/TestServicesApi.java
src/test/java/org/gitlab4j/api/TestSnippetDiscussionsApi.java
+1
-1
...test/java/org/gitlab4j/api/TestSnippetDiscussionsApi.java
src/test/java/org/gitlab4j/api/TestSnippetsApi.java
+1
-1
src/test/java/org/gitlab4j/api/TestSnippetsApi.java
src/test/java/org/gitlab4j/api/TestSystemHooksApi.java
+1
-1
src/test/java/org/gitlab4j/api/TestSystemHooksApi.java
src/test/java/org/gitlab4j/api/TestTagsApi.java
+1
-1
src/test/java/org/gitlab4j/api/TestTagsApi.java
src/test/java/org/gitlab4j/api/TestUserApi.java
+1
-1
src/test/java/org/gitlab4j/api/TestUserApi.java
src/test/java/org/gitlab4j/api/TestWikisApi.java
+1
-1
src/test/java/org/gitlab4j/api/TestWikisApi.java
with
13 additions
and
13 deletions
+13
-13
src/test/java/org/gitlab4j/api/TestProjectApiSnippets.java
+
1
-
1
View file @
ab045070
...
...
@@ -49,7 +49,7 @@ import org.junit.experimental.categories.Category;
*
* If any of the above are NULL, all tests in this class will be skipped.
*/
@Category
(
org
.
gitlab4j
.
api
.
IntegrationTest
.
class
)
@Category
(
IntegrationTest
.
class
)
public
class
TestProjectApiSnippets
extends
AbstractIntegrationTest
{
private
static
final
String
TEST_SNIPPET_TITLE_PREFIX
=
"Test Snippet: "
;
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/gitlab4j/api/TestProtectedBranchesApi.java
+
1
-
1
View file @
ab045070
...
...
@@ -30,7 +30,7 @@ import org.junit.runners.MethodSorters;
*
* NOTE: &FixMethodOrder(MethodSorters.NAME_ASCENDING) is very important to insure that testCreate() is executed first.
*/
@Category
(
org
.
gitlab4j
.
api
.
IntegrationTest
.
class
)
@Category
(
IntegrationTest
.
class
)
@FixMethodOrder
(
MethodSorters
.
NAME_ASCENDING
)
public
class
TestProtectedBranchesApi
extends
AbstractIntegrationTest
{
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/gitlab4j/api/TestRepositoryApi.java
+
1
-
1
View file @
ab045070
...
...
@@ -39,7 +39,7 @@ import org.junit.runners.MethodSorters;
*
* NOTE: &FixMethodOrder(MethodSorters.NAME_ASCENDING) is very important to insure that testCreate() is executed first.
*/
@Category
(
org
.
gitlab4j
.
api
.
IntegrationTest
.
class
)
@Category
(
IntegrationTest
.
class
)
@FixMethodOrder
(
MethodSorters
.
NAME_ASCENDING
)
public
class
TestRepositoryApi
extends
AbstractIntegrationTest
{
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/gitlab4j/api/TestRepositoryFileApi.java
+
1
-
1
View file @
ab045070
...
...
@@ -37,7 +37,7 @@ import org.junit.runners.MethodSorters;
*
* NOTE: &FixMethodOrder(MethodSorters.NAME_ASCENDING) is very important to insure that testCreate() is executed first.
*/
@Category
(
org
.
gitlab4j
.
api
.
IntegrationTest
.
class
)
@Category
(
IntegrationTest
.
class
)
@FixMethodOrder
(
MethodSorters
.
NAME_ASCENDING
)
public
class
TestRepositoryFileApi
extends
AbstractIntegrationTest
{
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/gitlab4j/api/TestRequestResponseLogging.java
+
1
-
1
View file @
ab045070
...
...
@@ -55,7 +55,7 @@ import org.junit.rules.TemporaryFolder;
* <p>
* If any of the above are NULL, all tests in this class will be skipped.
*/
@Category
(
org
.
gitlab4j
.
api
.
IntegrationTest
.
class
)
@Category
(
IntegrationTest
.
class
)
public
class
TestRequestResponseLogging
{
@ClassRule
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/gitlab4j/api/TestRunnersApi.java
+
1
-
1
View file @
ab045070
...
...
@@ -51,7 +51,7 @@ import org.junit.runners.MethodSorters;
* <p>
* NOTE: &FixMethodOrder(MethodSorters.NAME_ASCENDING) is very important to insure that the tests are in the correct order
*/
@Category
(
org
.
gitlab4j
.
api
.
IntegrationTest
.
class
)
@Category
(
IntegrationTest
.
class
)
@FixMethodOrder
(
MethodSorters
.
JVM
)
public
class
TestRunnersApi
extends
AbstractIntegrationTest
{
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/gitlab4j/api/TestServicesApi.java
+
1
-
1
View file @
ab045070
...
...
@@ -27,7 +27,7 @@ import org.junit.runners.MethodSorters;
*
* If any of the above are NULL, all tests in this class will be skipped.
*/
@Category
(
org
.
gitlab4j
.
api
.
IntegrationTest
.
class
)
@Category
(
IntegrationTest
.
class
)
@FixMethodOrder
(
MethodSorters
.
NAME_ASCENDING
)
public
class
TestServicesApi
extends
AbstractIntegrationTest
{
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/gitlab4j/api/TestSnippetDiscussionsApi.java
+
1
-
1
View file @
ab045070
...
...
@@ -32,7 +32,7 @@ public class TestSnippetDiscussionsApi implements Constants {
@Before
public
void
setUp
()
throws
Exception
{
initMocks
(
this
);
response
.
init
(
Discussion
.
class
,
null
,
"snippet-discussions.json"
);
response
.
init
(
Discussion
.
class
,
null
,
"snippet-discussions.json"
);
when
(
gitLabApi
.
getApiClient
()).
thenReturn
(
gitLabApiClient
);
when
(
gitLabApiClient
.
validateSecretToken
(
any
())).
thenReturn
(
true
);
when
(
gitLabApiClient
.
get
(
attributeCaptor
.
capture
(),
Mockito
.<
Object
>
any
())).
thenReturn
(
response
);
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/gitlab4j/api/TestSnippetsApi.java
+
1
-
1
View file @
ab045070
...
...
@@ -15,7 +15,7 @@ import org.junit.BeforeClass;
import
org.junit.Test
;
import
org.junit.experimental.categories.Category
;
@Category
(
org
.
gitlab4j
.
api
.
IntegrationTest
.
class
)
@Category
(
IntegrationTest
.
class
)
public
class
TestSnippetsApi
extends
AbstractIntegrationTest
{
private
static
GitLabApi
gitLabApi
;
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/gitlab4j/api/TestSystemHooksApi.java
+
1
-
1
View file @
ab045070
...
...
@@ -24,7 +24,7 @@ import org.junit.runners.MethodSorters;
*
* If any of the above are NULL, all tests in this class will be skipped.
*/
@Category
(
org
.
gitlab4j
.
api
.
IntegrationTest
.
class
)
@Category
(
IntegrationTest
.
class
)
@FixMethodOrder
(
MethodSorters
.
NAME_ASCENDING
)
public
class
TestSystemHooksApi
extends
AbstractIntegrationTest
{
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/gitlab4j/api/TestTagsApi.java
+
1
-
1
View file @
ab045070
...
...
@@ -18,7 +18,7 @@ import org.junit.BeforeClass;
import
org.junit.Test
;
import
org.junit.experimental.categories.Category
;
@Category
(
org
.
gitlab4j
.
api
.
IntegrationTest
.
class
)
@Category
(
IntegrationTest
.
class
)
public
class
TestTagsApi
extends
AbstractIntegrationTest
{
private
static
final
String
TEST_TAG_NAME_1
=
"test-tag-1"
;
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/gitlab4j/api/TestUserApi.java
+
1
-
1
View file @
ab045070
...
...
@@ -45,7 +45,7 @@ import org.junit.experimental.categories.Category;
* If this is null the SSH key tests will be skipped.
*
*/
@Category
(
org
.
gitlab4j
.
api
.
IntegrationTest
.
class
)
@Category
(
IntegrationTest
.
class
)
public
class
TestUserApi
extends
AbstractIntegrationTest
{
// The following needs to be set to your test repository
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/gitlab4j/api/TestWikisApi.java
+
1
-
1
View file @
ab045070
...
...
@@ -50,7 +50,7 @@ import org.junit.experimental.categories.Category;
* <p>
* If any of the above are NULL, all tests in this class will be skipped.
*/
@Category
(
org
.
gitlab4j
.
api
.
IntegrationTest
.
class
)
@Category
(
IntegrationTest
.
class
)
public
class
TestWikisApi
extends
AbstractIntegrationTest
{
private
static
final
String
TEST_WIKI_TITLE_PREFIX
=
"Test Wiki: "
;
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment