\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{tompii} \pdfinfo{ /Title (devops-and-docker-basic-sheet.pdf) /Creator (Cheatography) /Author (tompii) /Subject (DevOps and Docker Basic Sheet Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{009183} \definecolor{LightBackground}{HTML}{EFF8F7} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{DevOps and Docker Basic Sheet Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{tompii} via \textcolor{DarkBackground}{\uline{cheatography.com/169647/cs/35538/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}tompii \\ \uline{cheatography.com/tompii} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 18th November, 2022.\\ Updated 17th November, 2022.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{tabularx}{17.67cm}{p{1.687 cm} x{3.7114 cm} x{11.4716 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Maven}} \tn % Row 0 \SetRowColor{LightBackground} & groupId & \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} & \seqsplit{artifactId} & \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} & version & \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} & scope & (mandatory) \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{} \tn % Row Count 5 (+ 0) % Row 5 \SetRowColor{white} & mvm clean & Clean up project \tn % Row Count 7 (+ 2) % Row 6 \SetRowColor{LightBackground} & mvm test & Execute unit tests \tn % Row Count 8 (+ 1) % Row 7 \SetRowColor{white} & mvm package & Package compiled code in target directory \tn % Row Count 10 (+ 2) % Row 8 \SetRowColor{LightBackground} & mvm install & Install products in the local repository \tn % Row Count 12 (+ 2) % Row 9 \SetRowColor{white} & mvm deploy & Upload products in the remote repository \tn % Row Count 14 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.5264 cm} x{11.7436 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Configuration}} \tn % Row 0 \SetRowColor{LightBackground} Project Home & pom.xml and following directory \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{src/main/java} & Deliverable Java source code for the project. \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{src/main/ressources} & Deliverable resources for the project, such as properties files. \tn % Row Count 7 (+ 3) % Row 3 \SetRowColor{white} \seqsplit{src/main/webapp} & Specific web code source \tn % Row Count 9 (+ 2) % Row 4 \SetRowColor{LightBackground} \seqsplit{src/test/java} & Testing Java source code for the project. \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} \seqsplit{src/test/ressources} & Resources necessary for testing. \tn % Row Count 13 (+ 2) % Row 6 \SetRowColor{LightBackground} target & Compiled files and project archive \tn % Row Count 15 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{3.0366 cm} x{6.9167 cm} x{6.9167 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Logs}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Usage}} & - & \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} & Investigation to find the source of an anomaly & \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} & Detect suspicious behavior (to be alert before users) & \tn % Row Count 9 (+ 4) % Row 3 \SetRowColor{white} & Monitor the use of the software (with Elasticsearch for example) & \tn % Row Count 13 (+ 4) % Row 4 \SetRowColor{LightBackground} {\bf{Log Levels}} & - & \tn % Row Count 15 (+ 2) % Row 5 \SetRowColor{white} & FATAL & Unexpected events that prevent the application from running. \tn % Row Count 19 (+ 4) % Row 6 \SetRowColor{LightBackground} & ERROR & Unexpected events with impact for the user but does not prevent the application from running. \tn % Row Count 25 (+ 6) % Row 7 \SetRowColor{white} & WARN & Unexpected events without impact for the user \tn % Row Count 28 (+ 3) % Row 8 \SetRowColor{LightBackground} & INFO & Expected events with high added value (for examples : user actions, long treatments status, ...) \tn % Row Count 34 (+ 6) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{3.0366 cm} x{6.9167 cm} x{6.9167 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Logs (cont)}} \tn % Row 9 \SetRowColor{LightBackground} & DEBUG & Information about main methods with parameters and result \tn % Row Count 4 (+ 4) % Row 10 \SetRowColor{white} & TRACE & All other informations \tn % Row Count 6 (+ 2) % Row 11 \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{Good practices}}} \tn % Row Count 7 (+ 1) % Row 12 \SetRowColor{white} & Add timestamp to the logs & \tn % Row Count 9 (+ 2) % Row 13 \SetRowColor{LightBackground} & Use a specific format for logs & \tn % Row Count 11 (+ 2) % Row 14 \SetRowColor{white} & Show stacktrace to an unexpected exception & \tn % Row Count 14 (+ 3) % Row 15 \SetRowColor{LightBackground} {\bf{Bad practices}} & - & \tn % Row Count 17 (+ 3) % Row 16 \SetRowColor{white} & Show personal data (only id) & \tn % Row Count 19 (+ 2) % Row 17 \SetRowColor{LightBackground} & Show password & \tn % Row Count 20 (+ 1) % Row 18 \SetRowColor{white} & Show stacktrace to an expected exception & \tn % Row Count 23 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{4.0488 cm} x{9.7846 cm} x{3.0366 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Use Loggers}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Imports}} & - & \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} & `import \seqsplit{org.apache.logging.log4j.LogManager;`} & \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} & import \seqsplit{org.apache.logging.log4j.Logger;`} & \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} *Class Variable & `static final Logger LOGGER = \seqsplit{LogManager.getLogger();`} & \tn % Row Count 9 (+ 3) % Row 4 \SetRowColor{LightBackground} {\bf{Write Logs}} & - & \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} & `LOGGER.trace("Hello, I am a trace log");`` & \tn % Row Count 13 (+ 2) % Row 6 \SetRowColor{LightBackground} & `LOGGER.error("Hello, I am an error log with an exception", new Exception());` & \tn % Row Count 17 (+ 4) % Row 7 \SetRowColor{white} & `LOGGER.info("Hello, I am an info log with 2 variables : first \{\} ; second \{\}", "I am the first variable", "I am the second variable");` & \tn % Row Count 23 (+ 6) % Row 8 \SetRowColor{LightBackground} & ... & \tn % Row Count 24 (+ 1) % Row 9 \SetRowColor{white} {\emph{Log4j2 Formats}} & - & \tn % Row Count 26 (+ 2) % Row 10 \SetRowColor{LightBackground} & Key/Value & \tn % Row Count 27 (+ 1) % Row 11 \SetRowColor{white} & YAML & .yaml / .yml \tn % Row Count 29 (+ 2) % Row 12 \SetRowColor{LightBackground} & JSON & .json / .jsn \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{4.0488 cm} x{9.7846 cm} x{3.0366 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Use Loggers (cont)}} \tn % Row 13 \SetRowColor{LightBackground} & XML & .xml \tn % Row Count 1 (+ 1) % Row 14 \SetRowColor{white} {\bf{Appender}} & `\textless{}appender type="File" name="FILE" fileName="target/test.log"\textgreater{} \textless{}layout type="PatternLayout" pattern="\%d\{HH:mm:ss.SSS\} {[}\%t{]} \%-5level \%logger\{36\} - \%msg\%n" /\textgreater{} \textless{}/appender\textgreater{}` & \tn % Row Count 9 (+ 8) % Row 15 \SetRowColor{LightBackground} & `\textless{}appender type="Console" name="CONSOLE"\textgreater{} \textless{}layout type="PatternLayout" pattern="\%d\{HH:mm:ss.SSS\} {[}\%t{]} \%-5level \%logger\{36\} - \%msg\%n" /\textgreater{} \textless{}/appender\textgreater{}` & \tn % Row Count 16 (+ 7) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{p{1.647 cm} x{5.1057 cm} x{6.588 cm} x{3.1293 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{17.67cm}}{\bf\textcolor{white}{Test}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{4}{x{17.67cm}}{{\bf{Test Goals}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} - & To detect issues before production & & \tn % Row Count 4 (+ 3) % Row 2 \SetRowColor{LightBackground} - & To ensure the proper working of all the \seqsplit{functionalities} & & \tn % Row Count 9 (+ 5) % Row 3 \SetRowColor{white} - & To be sure that the system is reliable & & \tn % Row Count 13 (+ 4) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{4}{x{17.67cm}}{{\bf{Testing Levels}}} \tn % Row Count 14 (+ 1) % Row 5 \SetRowColor{white} - & Unit Testing & To check each component (unit of source code) individually. & Tout seul OK \tn % Row Count 18 (+ 4) % Row 6 \SetRowColor{LightBackground} - & Integration Testing & To check the interconnection between the different components. & Chacun tout seul OK \tn % Row Count 22 (+ 4) % Row 7 \SetRowColor{white} - & System Testing & In a complete and integrated system to verify its compliance with specified requirements.. & 1000x \tn % Row Count 28 (+ 6) % Row 8 \SetRowColor{LightBackground} - & Operational acceptance testing & To verify that the product conforms to the specification & \seqsplit{Utilisable} \tn % Row Count 32 (+ 4) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{p{1.647 cm} x{5.1057 cm} x{6.588 cm} x{3.1293 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{17.67cm}}{\bf\textcolor{white}{Test (cont)}} \tn % Row 9 \SetRowColor{LightBackground} \mymulticolumn{4}{x{17.67cm}}{{\bf{Write Test and Conventions}}} \tn % Row Count 1 (+ 1) % Row 10 \SetRowColor{white} - & GIVEN & Describe the initial context of the system. & \tn % Row Count 4 (+ 3) % Row 11 \SetRowColor{LightBackground} - & WHEN & Describe an event/action. & \tn % Row Count 6 (+ 2) % Row 12 \SetRowColor{white} - & THEN & Describe an expected outcome/result. & \tn % Row Count 9 (+ 3) % Row 13 \SetRowColor{LightBackground} \mymulticolumn{4}{x{17.67cm}}{} \tn % Row Count 9 (+ 0) % Row 14 \SetRowColor{white} - & Test is a {\bf{public}} method in test case & & \tn % Row Count 13 (+ 4) % Row 15 \SetRowColor{LightBackground} - & Test Have {\bf{@Test}} annotation & & \tn % Row Count 16 (+ 3) % Row 16 \SetRowColor{white} - & Test return {\bf{void}} & & \tn % Row Count 18 (+ 2) % Row 17 \SetRowColor{LightBackground} \mymulticolumn{4}{x{17.67cm}}{} \tn % Row Count 18 (+ 0) % Row 18 \SetRowColor{white} - & \seqsplit{shouldReturnTrue()} & & \tn % Row Count 20 (+ 2) % Row 19 \SetRowColor{LightBackground} - & \seqsplit{shouldReturnTrue()shouldThrowNotFoundException()} & & \tn % Row Count 24 (+ 4) % Row 20 \SetRowColor{white} - & \seqsplit{shouldThrowNotFoundException()} & & \tn % Row Count 27 (+ 3) % Row 21 \SetRowColor{LightBackground} \mymulticolumn{4}{x{17.67cm}}{{\bf{Result of Test}}} \tn % Row Count 28 (+ 1) % Row 22 \SetRowColor{white} - & Success & All assertions are correct & \tn % Row Count 30 (+ 2) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{p{1.647 cm} x{5.1057 cm} x{6.588 cm} x{3.1293 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{17.67cm}}{\bf\textcolor{white}{Test (cont)}} \tn % Row 23 \SetRowColor{LightBackground} - & Faillure & At least one assertion is incorrect & \tn % Row Count 3 (+ 3) % Row 24 \SetRowColor{white} - & Error & An unexpected exception has been thrown & \tn % Row Count 6 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{p{1.647 cm} x{5.1057 cm} x{8.0703 cm} p{1.647 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{17.67cm}}{\bf\textcolor{white}{JUnit}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{4}{x{17.67cm}}{{\bf{Assertions}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} - & \seqsplit{`assertEquals(expected}, actual) ;` & & \tn % Row Count 4 (+ 3) % Row 2 \SetRowColor{LightBackground} - & \seqsplit{`assertNotEquals(expected}, actual);` & & \tn % Row Count 7 (+ 3) % Row 3 \SetRowColor{white} - & \seqsplit{`assertNull(object);`} -{}- \seqsplit{`assertNotNull(object);`} & & \tn % Row Count 12 (+ 5) % Row 4 \SetRowColor{LightBackground} - & \seqsplit{`assertTrue(condition);`} -{}- \seqsplit{`assertFalse(condition);`} & & \tn % Row Count 17 (+ 5) % Row 5 \SetRowColor{white} \mymulticolumn{4}{x{17.67cm}}{{\bf{Exceptions}}} \tn % Row Count 18 (+ 1) % Row 6 \SetRowColor{LightBackground} - & `fail() ;` & Used to fail a test when an expected exception has not been thrown : & \tn % Row Count 22 (+ 4) % Row 7 \SetRowColor{white} - & expected attribute in @Test annotation & Used to catch an expected exception : & \tn % Row Count 26 (+ 4) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{4}{x{17.67cm}}{{\bf{JUnit Tools}}} \tn % Row Count 27 (+ 1) % Row 9 \SetRowColor{white} - & @Before & annotates a method that will be executed before each test & \tn % Row Count 30 (+ 3) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{p{1.647 cm} x{5.1057 cm} x{8.0703 cm} p{1.647 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{17.67cm}}{\bf\textcolor{white}{JUnit (cont)}} \tn % Row 10 \SetRowColor{LightBackground} - & @After & annotates a method that will be executed after each test & \tn % Row Count 3 (+ 3) % Row 11 \SetRowColor{white} - & @BeforClass ({\bf{static}}) & annotates a method that will be executed once before all the tests of a test case. & \tn % Row Count 8 (+ 5) % Row 12 \SetRowColor{LightBackground} - & @AfterClass ({\bf{static}}) & annotates a method that will be executed once after all the tests of a test case. & \tn % Row Count 13 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{p{1.647 cm} x{4.941 cm} x{8.235 cm} p{1.647 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{17.67cm}}{\bf\textcolor{white}{AssertJ}} \tn % Row 0 \SetRowColor{LightBackground} & AssertJ is to be used in addition to JUnit & & \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} & The change is only for the assertion & & \tn % Row Count 7 (+ 3) % Row 2 \SetRowColor{LightBackground} & Assertion begins & \seqsplit{`Assertions.assertThat(objectUnderTest)`} & \tn % Row Count 9 (+ 2) % Row 3 \SetRowColor{white} & \seqsplit{`Assertions.assertThat(result)} .containsExactlyInAnyOrderElementsOf(cards);` & & \tn % Row Count 16 (+ 7) \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.6991 cm} x{11.5709 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Mockito}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{{\bf{General}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} - & Framework to mock java object \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} - & Framework to mock java object \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} - & Can check calls to methods \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{{\bf{Using Mockito in TestCase}}} \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} - Init & \seqsplit{`@RunWith(MockitoJUnitRunner}.class)` \tn % Row Count 9 (+ 2) % Row 6 \SetRowColor{LightBackground} - Mock & `@Mock annotation above object to mock` \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} - Inject & `@InjectMock \tn % Row Count 12 (+ 1) % Row 8 \SetRowColor{LightBackground} - When & \seqsplit{`Mockito.when(myMockedObject.mymethod())`} \tn % Row Count 14 (+ 2) % Row 9 \SetRowColor{white} - thenThrow & `Mockito.when({[}...{]}).thenThrow(myException);` \tn % Row Count 16 (+ 2) % Row 10 \SetRowColor{LightBackground} - \seqsplit{thenCallRealMethod} & `Mockito.when({[}...{]}).thenCallRealMethod();` \tn % Row Count 18 (+ 2) % Row 11 \SetRowColor{white} - Verify & \seqsplit{`Mockito.verify(myMockedObject},VerificationMode).mymethod(params,...);` \tn % Row Count 21 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{p{1.727 cm} p{1.727 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Coverage}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{Measure to describe the proportion of code executed during tests} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{17.67cm}}{Higher the percentage, higher the code is safe} \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{2}{x{17.67cm}}{Jacoco in Maven for Coverage} \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{2.5305 cm} x{7.0854 cm} x{7.2541 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Continuous Integration}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Definition}} & {\emph{Continuous integration is a set of practices used in software engineering to verify at each source code change that the result of the changes does not produce regression in the developed application}} & \tn % Row Count 13 (+ 13) % Row 1 \SetRowColor{white} \mymulticolumn{3}{x{17.67cm}}{{\bf{Goals}}} \tn % Row Count 14 (+ 1) % Row 2 \SetRowColor{LightBackground} - & Free developers from recurring tasks & \tn % Row Count 17 (+ 3) % Row 3 \SetRowColor{white} - & ncourage behaviors that help reduce the number or error and bugs & \tn % Row Count 21 (+ 4) % Row 4 \SetRowColor{LightBackground} - & Find and fix bugs quicker & \tn % Row Count 23 (+ 2) % Row 5 \SetRowColor{white} - & Deliver updates faster & \tn % Row Count 25 (+ 2) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{3}{x{17.67cm}}{{\bf{Build}}} \tn % Row Count 26 (+ 1) % Row 7 \SetRowColor{white} - Step 1 & Compile & Ensure code actually compiles on every platforms \tn % Row Count 29 (+ 3) % Row 8 \SetRowColor{LightBackground} - Step 2 & Test & Verify that the features run as expected. Check that there is no regressionCheck that there is no regression \tn % Row Count 36 (+ 7) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{2.5305 cm} x{7.0854 cm} x{7.2541 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Continuous Integration (cont)}} \tn % Row 9 \SetRowColor{LightBackground} - Step 3 & Deploy & Generate a new resource. Upload the resource on the remote repository \tn % Row Count 5 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \end{document}