-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add java code auto reformat to build (#13)
- Loading branch information
Showing
8 changed files
with
99 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
plugins { | ||
id "com.diffplug.spotless" version "5.1.1" | ||
} | ||
|
||
compileJava.dependsOn 'spotlessApply' | ||
|
||
spotless { | ||
java { | ||
googleJavaFormat('1.8') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
conduit-commons/src/test/java/io/dataline/conduit/commons/HelloWorldTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package io.dataline.conduit.commons; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
class HelloWorldTest { | ||
@Test | ||
void name() { | ||
assertEquals(1, 1); | ||
} | ||
} | ||
@Test | ||
void name() { | ||
assertEquals(1, 1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 41 additions & 46 deletions
87
conduit-server/src/main/java/io/dataline/conduit/server/apis/PetApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,50 @@ | ||
package io.dataline.conduit.server.apis; | ||
|
||
import javax.validation.Valid; | ||
import javax.ws.rs.Path; | ||
import java.io.File; | ||
import java.util.List; | ||
|
||
import io.dataline.conduit.api.model.ModelApiResponse; | ||
import io.dataline.conduit.api.model.Pet; | ||
import java.io.File; | ||
import java.util.List; | ||
import javax.validation.Valid; | ||
import javax.ws.rs.Path; | ||
|
||
@Path("/pet") | ||
public class PetApi implements io.dataline.conduit.api.PetApi { | ||
|
||
@Override | ||
public Pet addPet(@Valid Pet pet) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void deletePet(Long petId, String apiKey) { | ||
|
||
} | ||
|
||
@Override | ||
public List<Pet> findPetsByStatus(String status) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public List<Pet> findPetsByTags(List<String> tags) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Pet getPetById(Long petId) { | ||
final Pet pet = new Pet(); | ||
pet.setId(petId); | ||
return pet; | ||
} | ||
|
||
@Override | ||
public Pet updatePet(@Valid Pet pet) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void updatePetWithForm(Long petId, String name, String status) { | ||
|
||
} | ||
|
||
@Override | ||
public ModelApiResponse uploadFile(Long petId, String additionalMetadata, @Valid File body) { | ||
return null; | ||
} | ||
@Override | ||
public Pet addPet(@Valid Pet pet) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void deletePet(Long petId, String apiKey) {} | ||
|
||
@Override | ||
public List<Pet> findPetsByStatus(String status) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public List<Pet> findPetsByTags(List<String> tags) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Pet getPetById(Long petId) { | ||
final Pet pet = new Pet(); | ||
pet.setId(petId); | ||
return pet; | ||
} | ||
|
||
@Override | ||
public Pet updatePet(@Valid Pet pet) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void updatePetWithForm(Long petId, String name, String status) {} | ||
|
||
@Override | ||
public ModelApiResponse uploadFile(Long petId, String additionalMetadata, @Valid File body) { | ||
return null; | ||
} | ||
} |
12 changes: 6 additions & 6 deletions
12
conduit-server/src/test/java/io/dataline/conduit/server/ServerAppTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package io.dataline.conduit.server; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
class ServerAppTest { | ||
@Test | ||
void name() { | ||
assertEquals(1, 1); | ||
} | ||
@Test | ||
void name() { | ||
assertEquals(1, 1); | ||
} | ||
} |