일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- Windows
- netsh
- VirtualBox
- Eclipse
- maVen
- Windows 10
- DB 도메인
- Source
- lsof
- Quartz
- JavaScript
- Mac
- 단축키
- bash
- copy-dependencies
- import
- profile
- GIT
- tomcat
- 네트워크
- context
- xargs
- ssh
- web.xml
- 공통표준용어
- IntelliJ
- port
- find
- grep
- resource
- Today
- Total
목록전체 글 (1663)
develog
build.gradle plugins { id 'java' } group 'org.example' version '1.0-SNAPSHOT' repositories { mavenCentral() } dependencies { testImplementation 'org.junit.jupiter:junit-jupiter:5.6.2' testCompile 'org.assertj:assertj-core:3.11.1' } test { useJUnitPlatform() }
public static int randomBetween(int start, int end) { return (int) ((Math.random() * (end - start + 1)) + start); } public static T randomOneOf(T[] list) { return list[randomBetween(0, list.length - 1)]; } public static void shuffle(Integer[] list) { for (int i = 0; i < list.length; i++) { int x = randomBetween(0, list.length - 1); int y = randomBetween(0, list.length - 1); int temp = list[x]; l..
Thymeleaf Thymeleaf is a modern server-side Java template engine for both web and standalone environments. 파일 확장자는 .html 사용 선언 html 태그에 xmlns:th 속성(attribute)을 추가한다 Simple expressions: ${...} Variable Expressions @{...} Link URL Expressions *{...} Selection Variable Expressions #{...} Message Expressions ~{...} Fragment Expressions 기본객체 ${#request} ${#response} ${#session} ${#servletContext} ${#..
@ExtendWith(MockitoExtension.class) class UserServiceTest { @Mock UserRepository userRepository; @InjectMocks UserService userService; @Test void test_00() throws Exception { assertThat(userService).isNotNull(); assertThat(userRepository).isNotNull(); } }
import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.web.servlet.MockMvc..
import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.web.servlet.MockMvc; import static org.springframework.test.web.servle..