You can expand Virtual Disk via Hyper-V UI.
After the expantion, the guest OS might not take the expantion into account.
@SpringBootTest | |
// Import of the inner @TestConfiguration is important here | |
// see Note in https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.testing.spring-boot-applications.excluding-configuration | |
@Import(ExempleITest.MockConfig.class }) | |
@ActiveProfiles("itest") | |
class ExempleITest { | |
// ... | |
@TestConfiguration |
You can expand Virtual Disk via Hyper-V UI.
After the expantion, the guest OS might not take the expantion into account.
When analysing code coverage jacoco analyses compiles classes. If you have generated code, jacoco will take it for analysis, unless your classes are annotated with an annotation havin 'Generated' in its name.
The filter used by jacoco to filter out all classes annotated with ..Generated
is AnnotationGeneratedFilter
The Docker executor when used with GitLab CI, connects to Docker Engine and runs each build in a separate and isolated container. The image for the job is :
Using docker on CICD jobs in GitLab means using Docker-in-Docker (dind):
You can use Build Init Plugin to generate a new Gradle build.
The java-application generates a new multi-module project with one submodule app
.
The henerated project has the following layout:
.
Windows - CRLF - carriage retur + linefeed - \r\n Linux - LF - linefeed - \n MAC - CR - carriage return - \r
core.autocrlf
configuration setting:
true
- this converts LF endings into CRLF when you check out code, converts CRLF line endings into LF when you add a file to the index; usually used on windows machinesinput
- this converts CRLF to LF on commit only; used on Linux machines; if a file with CRLF endings accidentally gets introduced, it gets fixed on commitimport lombok.extern.slf4j.Slf4j; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.core.io.ClassPathResource; | |
import org.springframework.util.StringUtils; | |
import javax.annotation.PostConstruct; | |
import java.io.File; | |
import java.io.InputStream; | |
import java.nio.file.Files; |
import static org.assertj.core.api.Assertions.within; | |
//... | |
public class UserTest { | |
private UserService userService = new UserService(); | |
@Test | |
public void given_valid_inputs_creation_is_ok() throws Exception { | |
User userToCreate = new User("name"); | |
User user = userService.create(userToCreate); |