여기에 댓글을 보내보세요.
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
server.ssl.key-store: keystore.p12 | |
server.ssl.key-store-password: 123456 | |
server.ssl.keyStoreType: PKCS12 | |
server.ssl.keyAlias: tomcat |
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
package pages | |
import geb.Page | |
/** | |
* @author Keeun Baik | |
*/ | |
class LoginPage extends Page { | |
static url = "/users/loginform" |
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
package whiteship | |
import org.springframework.test.web.servlet.MockMvc | |
import org.springframework.test.web.servlet.setup.MockMvcBuilders | |
import spock.lang.Specification | |
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get | |
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status | |
/** | |
* @author Keesun Baik |
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
package whiteship | |
import org.springframework.test.web.servlet.MockMvc | |
import org.springframework.test.web.servlet.setup.MockMvcBuilders | |
import spock.lang.Specification | |
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get | |
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content | |
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; |
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
package sandbox.requestmapping; | |
import org.junit.Test; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.test.web.servlet.MockMvc; | |
import org.springframework.test.web.servlet.setup.MockMvcBuilders; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.ResponseBody; |
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
public List<Board> getPopularBoards(){ | |
List<Board> allBoards = boardDao.getAll(); | |
List<Post> recentPosts = new ArrayList()<>; | |
for(Board b : allBoards) { | |
Post p = postDao.getRecentPostFrom(b); | |
recentPosts.add(p); | |
} | |
List<Board> result = new ArrayList()<>; | |
for(Post p : recentPosts) { | |
if(p.getViewCount() > 10) { |
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
package yes24.api.server | |
import groovyx.net.http.HTTPBuilder | |
import static groovyx.net.http.ContentType.TEXT | |
class BookController { | |
def info() { | |
def bookId = params.id |
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
@Test | |
public void buildCloneRepository() throws GitAPIException, IOException { | |
// Given | |
Project original = createProject("keesun", "test"); | |
CloneAndFetchTemplate template = createTemplate(original); | |
new GitRepository("keesun", "test").create(); | |
// When | |
Repository repository = template.buildCloneRepository(); |
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
public void cloneRepository(Project originalProject, Project forkingProject) throws GitAPIException, IOException { | |
String url = // original project's git url | |
String directory = "repo/git/" + forkingProject.owner + "/" + forkingProject.name; | |
Git.cloneRepository() | |
.setURI(url) | |
.setDirectory(new File(directory)) | |
.setCloneAllBranches(true) | |
.call(); | |
forkingProject.repositoryUrl = directory + "/.git"; | |
} |
NewerOlder