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
#!/bin/bash | |
mvn test -Dtest={testClassName} |
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
@Singleton | |
@Component( | |
modules = { | |
AppModule.class | |
}) | |
public interface ApplicationComponent { | |
void inject(MainActivity target); | |
final class Initializer { |
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
/** | |
* BizPurio 메시지 전송 class build | |
* @author by dotkebi@gmail.com on 2016-10-11. | |
*/ | |
public class BizSenderBuilder { | |
private BizSend bizSend; | |
private String ip; | |
private int port; |
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 class CSVWriter { | |
private static final String UTF8_BOM = "\uFEFF"; | |
public void convert(HttpServletResponse response, List<?> datas, String name) { | |
write(response, transform(datas), name); | |
} | |
private List<String[]> transform(List<?> objects) { | |
List<String[]> dataToWrite = new ArrayList<>(); |
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
/** | |
* @author by dotkebi@gmail.com on 2017-5-1. | |
*/ | |
public interface CSVWritable { | |
void write(OutputStream outputStream, List<String[]> datas); | |
} |
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
@Controller | |
public class ResponseBodyExampleController1 { | |
@GetMapping("/") | |
public @ResponseBody String someMethod() { | |
return "result"; | |
} | |
} |
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
@Controller | |
public class ResponseBodyExampleController2 { | |
@GetMapping("/") | |
public | |
@ResponseBody | |
String someMethod() { | |
return "result"; | |
} | |
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
@Controller | |
public class ResponseBodyExampleController3 { | |
@ResponseBody | |
@GetMapping("/") | |
public String someMethod() { | |
return "result"; | |
} | |
} |
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
@RunWith(SpringRunner.class) | |
@SpringBootTest | |
public class ExampleMatcherTest { | |
@Autowired | |
private ExampleRepository repository; | |
@Test | |
public void exampleTest() { | |
Child child = new Child(); |