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
kubectl delete pods your-pod-name --grace-period=0 --force -n your-namespace-name |
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
git commit --allow-empty -m "trigger pipeline with an empty commit" |
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
#set ($IS_SERVICE_TEST = ${NAME.endsWith("ServiceTest")}) | |
#set ($IS_VIEW_TEST = ${NAME.endsWith("ViewTest")}) | |
#set ($IS_CONTROLLER_TEST = ${NAME.endsWith("ControllerTest")}) | |
#set ($IS_MOCK_TEST = ${IS_SERVICE_TEST} or ${IS_VIEW_TEST} or ${IS_CONTROLLER_TEST}) | |
#set ($IS_DAO_TEST = ${NAME.endsWith("DaoTest")}) | |
#set ($IS_MOCK_OR_DAO_TEST = ${IS_MOCK_TEST} or ${IS_DAO_TEST}) | |
#set ($TESTING_CLASS_NAME = ${NAME.split("Test")[0]}) |
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
import org.apache.commons.lang3.StringUtils; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.nodes.Element; | |
import org.jsoup.nodes.Node; | |
import org.jsoup.nodes.TextNode; | |
import java.util.List; | |
import java.util.stream.Collectors; |
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
import lombok.AccessLevel; | |
import lombok.NoArgsConstructor; | |
import lombok.extern.slf4j.Slf4j; | |
import org.apache.commons.lang3.StringUtils; | |
import javax.xml.bind.JAXBContext; | |
import javax.xml.bind.Unmarshaller; | |
import javax.xml.stream.XMLInputFactory; | |
import javax.xml.stream.XMLStreamReader; | |
import javax.xml.stream.util.StreamReaderDelegate; |
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
import org.apache.commons.lang3.ArrayUtils; | |
import org.junit.After; | |
import org.junit.runner.RunWith; | |
import org.mockito.InOrder; | |
import org.mockito.junit.MockitoJUnitRunner; | |
import static org.mockito.Mockito.inOrder; | |
import static org.mockito.Mockito.verifyNoMoreInteractions; | |
@RunWith(MockitoJUnitRunner.class) |
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
import org.apache.commons.lang3.StringUtils; | |
import java.text.Normalizer; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Locale; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
import java.util.stream.Collectors; |
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
import org.springframework.data.domain.Page; | |
import org.springframework.data.support.PageableExecutionUtils; | |
import java.util.function.Function; | |
import java.util.stream.Collectors; | |
public final class SpringDataPageUtils { | |
public static <T, C> Page<C> convertPage(Page<T> page, Function<T, C> converter) { | |
return PageableExecutionUtils.getPage( |
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
package ...; | |
import ...JsonUtils; | |
import lombok.extern.slf4j.Slf4j; | |
import org.apache.commons.io.IOUtils; | |
import org.springframework.http.HttpHeaders; | |
import org.springframework.util.LinkedMultiValueMap; | |
import org.springframework.util.MultiValueMap; | |
import org.springframework.web.util.ContentCachingRequestWrapper; | |
import org.springframework.web.util.WebUtils; |
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
<properties> | |
<java.version>11</java.version> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
<jaxb.version>2.3.3</jaxb.version> | |
... | |
</properties> |