This file contains hidden or 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 com.diffblue.demo; | |
| import static org.junit.jupiter.api.Assertions.assertEquals; | |
| import static org.junit.jupiter.api.Assertions.assertFalse; | |
| import static org.junit.jupiter.api.Assertions.assertThrows; | |
| import static org.junit.jupiter.api.Assertions.assertTrue; | |
| import org.junit.jupiter.api.Test; | |
| public class UtilityTest { |
This file contains hidden or 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
| /** | |
| * A Sample Controller that exposes a bunch of endpoints that allow operations | |
| * such as CREATE, READ, DELETE and LIST users. | |
| * | |
| * @author Rafiullah Hamedy | |
| */ | |
| package com.sampleservice.demo.controller; | |
| import java.util.*; |
This file contains hidden or 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 com.sampleservice.demo.service; | |
| import com.sampleservice.demo.validator.StudentValidator; | |
| import com.sampleservice.demo.dao.StudentDAO; | |
| import com.sampleservice.demo.model.Student; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.stereotype.Service; | |
| import org.springframework.transaction.annotation.Transactional; | |
| import java.util.Collection; |
This file contains hidden or 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 com.sampleservice.demo.controller; | |
| import static org.mockito.AdditionalMatchers.or; | |
| import static org.mockito.Mockito.isA; | |
| import static org.mockito.Mockito.isNull; | |
| import static org.mockito.Mockito.when; | |
| import com.sampleservice.demo.dto.inbound.StudentInDTO; | |
| import com.sampleservice.demo.model.Student; | |
| import com.sampleservice.demo.service.StudentServiceImpl; |
This file contains hidden or 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 com.sampleservice.demo.validator; | |
| import org.springframework.http.HttpStatus; | |
| import org.springframework.stereotype.Component; | |
| import org.springframework.web.server.ResponseStatusException; | |
| import java.util.Optional; | |
| @Component | |
| public class StudentValidator { |
This file contains hidden or 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
| FROM python:3.8-slim-buster | |
| COPY . /app | |
| WORKDIR /app | |
| RUN pip install -r requirements.txt | |
| ENTRYPOINT [ "python" ] | |
| CMD [ "app.py" ] |
This file contains hidden or 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
| FROM python:3.8-slim-buster | |
| COPY . /app | |
| WORKDIR /app | |
| RUN pip install -r requirements.txt | |
| ENTRYPOINT [ "python" ] | |
| CMD [ "app.py" ] |
OlderNewer