설명 | method | endPoint |
---|---|---|
결제창 | ||
accessToken 발급 | POST | /v1/access-token |
승인 | POST | /v1/payments/{tid} |
취소 | POST | /v1/payments/{tid}/cancel |
망상취소 (orderId) | POST | /v1/payments/netcancel |
거래조회 - tid | GET | /v1/payments/{tid} |
거래조회 - orderId | GET | /v1/payments/find/{orderId} |
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
@SpringBootApplication | |
public class MultiProfileServerApplication { | |
public static void main(String[] args) { | |
SpringApplication.run(MultiProfileServerApplication.class, args); | |
} | |
@Profile(value = "command") | |
@Bean | |
public CommandLineRunner init() { |
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
@Slf4j | |
@Getter | |
@ToString | |
@ConfigurationProperties(prefix = "file") | |
public class FileProperties { | |
private final Map<String, PathProperties> names; | |
private final Resources resources; | |
private final String userDir; | |
private final String projDir; |
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
@Slf4j | |
@Getter | |
@ConfigurationProperties(prefix = "file") | |
public class FileProperties { | |
private final Map<String, PathProperties> names; | |
private final Resources resources; | |
private final String userDir; | |
private final String projDir; |
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
@SuppressWarnings("NonAsciiCharacters") | |
@TestInstance(TestInstance.Lifecycle.PER_CLASS) | |
@TestMethodOrder(MethodOrderer.OrderAnnotation.class) | |
class LibraryServiceTest { | |
private static LibraryService libraryService; | |
private static LibraryRepository libraryRepository; | |
@BeforeAll | |
static void beforeAll() { |
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
@SuppressWarnings("NonAsciiCharacters") | |
@TestInstance(TestInstance.Lifecycle.PER_CLASS) | |
@TestMethodOrder(MethodOrderer.OrderAnnotation.class) | |
class LibraryFileRepositoryTest { | |
private static LibraryRepository libraryRepository; | |
@BeforeAll | |
static void beforeAll() { | |
libraryRepository = new LibraryFileRepository(); |
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
@SuppressWarnings("NonAsciiCharacters") | |
@TestInstance(TestInstance.Lifecycle.PER_CLASS) | |
@TestMethodOrder(MethodOrderer.class) | |
class CSVFileHandlerTest { | |
private static CSVFileHandler csvFileHandler; | |
private static List<Book> books = new ArrayList<>(); | |
@BeforeAll |
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
class BookServiceUnitTest { | |
private BookRepository bookRepository; | |
private BookService bookService; | |
@BeforeEach | |
void setup() { | |
bookRepository = mock(BookRepository.class); // Mockito를 이용하여 BookRepository를 모킹합니다. | |
bookService = new BookService(bookRepository); // 모킹된 Repository를 BookService에 주입합니다. | |
} |
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
@Slf4j | |
public class SeedUtil { | |
/* 개선 버전 */ | |
public static byte[] encryptCBC(String plainText, byte[] key, String iv) throws Exception { | |
try { | |
byte[] planTextBytes = plainText.getBytes(); | |
byte[] ivBytes = iv.getBytes(); |
These rules are adopted from the AngularJS commit conventions.
NewerOlder