<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>이상학의 개발블로그</title>
    <link>https://sanghaklee.tistory.com/</link>
    <description>기록은 기억을 지배한다.</description>
    <language>ko</language>
    <pubDate>Mon, 9 Nov 2026 14:03:54 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>학학이</managingEditor>
    <image>
      <title>이상학의 개발블로그</title>
      <url>https://tistory1.daumcdn.net/tistory/1970926/attach/d1eee72acf724140a0fd8f6db3eb24bf</url>
      <link>https://sanghaklee.tistory.com</link>
    </image>
    <item>
      <title>[리눅스] 소켓은 파일이다?! Everything is a file</title>
      <link>https://sanghaklee.tistory.com/77</link>
      <description>&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-ke-mobileStyle=&quot;widthOrigin&quot; data-filename=&quot;docker socker-2025-12-28-161828.png&quot; data-origin-width=&quot;4158&quot; data-origin-height=&quot;2480&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/bciw2B/dJMcafysufQ/f6FqpR5lF8GhVhDyXz9KR0/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/bciw2B/dJMcafysufQ/f6FqpR5lF8GhVhDyXz9KR0/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/bciw2B/dJMcafysufQ/f6FqpR5lF8GhVhDyXz9KR0/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fbciw2B%2FdJMcafysufQ%2Ff6FqpR5lF8GhVhDyXz9KR0%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot; loading=&quot;lazy&quot; width=&quot;4158&quot; height=&quot;2480&quot; data-filename=&quot;docker socker-2025-12-28-161828.png&quot; data-origin-width=&quot;4158&quot; data-origin-height=&quot;2480&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;div data-ke-type=&quot;moreLess&quot; data-text-more=&quot;더보기&quot; data-text-less=&quot;닫기&quot;&gt;&lt;a class=&quot;btn-toggle-moreless&quot;&gt;더보기&lt;/a&gt;
&lt;div class=&quot;moreless-content&quot;&gt;
&lt;pre id=&quot;code_1766938859184&quot; class=&quot;bash&quot; data-ke-language=&quot;bash&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;flowchart LR
    subgraph HW[&quot;하드웨어 / 서비스&quot;]
        HD[&quot;  디스크&quot;]
        KB[&quot;⌨️ 키보드&quot;]
        DOCKER[&quot;  Docker&quot;]
    end

    subgraph FILE[&quot;파일&quot;]
        D1[&quot;/dev/sda&quot;]
        D2[&quot;/dev/input/event0&quot;]
        D3[&quot;/var/run/docker.sock&quot;]
    end

    subgraph SYSCALL[&quot;시스템 콜&quot;]
        O[&quot;open()&quot;] --&amp;gt; R[&quot;read()&quot;]
        R --&amp;gt; W[&quot;write()&quot;]
        W --&amp;gt; C[&quot;close()&quot;]
    end

    subgraph APP[&quot;응용프로그램&quot;]
        P[&quot;프로세스&quot;]
    end

    HD &amp;lt;--&amp;gt; D1
    KB &amp;lt;--&amp;gt; D2
    DOCKER &amp;lt;--&amp;gt; D3
    
    D1 &amp;lt;--&amp;gt; SYSCALL
    D2 &amp;lt;--&amp;gt; SYSCALL
    D3 &amp;lt;--&amp;gt; SYSCALL
    
    SYSCALL &amp;lt;--&amp;gt; P&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;hr contenteditable=&quot;false&quot; data-ke-type=&quot;horizontalRule&quot; data-ke-style=&quot;style5&quot; /&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;유튜브의 네트워크 관련 영상을 보다가 &lt;b&gt;소켓은 파일이라는 것&lt;/b&gt;을 알고 있어야 한다는 식의 이야기가 있었는데, 당시에 잘 이해가 가지 않았다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=3jQ2dBpiqPo&quot;&gt;https://www.youtube.com/watch?v=3jQ2dBpiqPo&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;iframe src=&quot;https://www.youtube.com/embed/3jQ2dBpiqPo&quot; width=&quot;860&quot; height=&quot;484&quot; frameborder=&quot;&quot; allowfullscreen=&quot;true&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;리눅스에 대해 다시 공부하다가 이 주제를 다시 만나게 됐고 &lt;b&gt;&quot;소켓은 파일이다&lt;/b&gt;&quot;를 스스로 이해시켜보려 한다.&lt;/p&gt;
&lt;hr contenteditable=&quot;false&quot; data-ke-type=&quot;horizontalRule&quot; data-ke-style=&quot;style5&quot; /&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;먼저 파일(file)은 정확히 뭘까?&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;문서 파일, 이미지 파일, 영상 파일 이런식으로 컴퓨터가 정보를 저장하는 구조체라고 생각했다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;찾아보니 일반적인 의미에서 파일은 &lt;b&gt;컴퓨터나 기기에서 정보를 저장하는 기본 단위로, 문서, 사진, 음악, 영상 등 특정 목적을 가진 데이터의 집합체를 논리적으로 구분해 놓은 것&lt;/b&gt;을 말한다고 한다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;근데, 이 파일의 개념을 리눅스에선 &lt;b&gt;디렉토리, 하드웨어 장치, 네트워크 소켓까지 모두 파일로 취급한다고 한다.&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;얼마나 강조하고 싶었으면 &lt;b&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Everything_is_a_file&quot;&gt;Everything is a file&lt;/a&gt;&lt;/b&gt;이라는 말까지 있을까&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;리눅스 파일엔 유형이 7가지나 된다.&lt;/b&gt;&lt;/p&gt;
&lt;table style=&quot;height: 342px; width: 858px;&quot; data-ke-align=&quot;alignLeft&quot; data-ke-style=&quot;style8&quot;&gt;
&lt;tbody&gt;
&lt;tr style=&quot;height: 21px;&quot;&gt;
&lt;td style=&quot;height: 21px; width: 58px; text-align: center;&quot; align=&quot;center&quot;&gt;&lt;b&gt; 기호 &lt;/b&gt;&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 133px; text-align: center;&quot;&gt;&lt;b&gt; 유형 &lt;/b&gt;&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 226px; text-align: center;&quot;&gt;&lt;b&gt; 설명 &lt;/b&gt;&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 198px; text-align: center;&quot;&gt;&lt;b&gt;&lt;code&gt;
예시

&lt;/code&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 22px;&quot;&gt;
&lt;td style=&quot;width: 58px; text-align: center; height: 22px;&quot;&gt;-&lt;/td&gt;
&lt;td style=&quot;width: 133px; text-align: center; height: 22px;&quot;&gt;일반 파일&lt;/td&gt;
&lt;td style=&quot;width: 226px; text-align: center; height: 22px;&quot;&gt;텍스트,&amp;nbsp;바이너리,&amp;nbsp;이미지&amp;nbsp;등&lt;/td&gt;
&lt;td style=&quot;width: 198px; text-align: center; height: 22px;&quot;&gt;document.txt,&amp;nbsp;program.exe&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 21px;&quot;&gt;
&lt;td style=&quot;height: 21px; width: 58px; text-align: center;&quot; align=&quot;center&quot;&gt;&lt;code&gt;d&lt;/code&gt;&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 133px; text-align: center;&quot;&gt;디렉토리&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 226px; text-align: center;&quot;&gt;다른 파일들을 담는 폴더&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 198px; text-align: center;&quot;&gt;&lt;code&gt;/home&lt;/code&gt;, &lt;code&gt;/etc&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 21px;&quot;&gt;
&lt;td style=&quot;height: 21px; width: 58px; text-align: center;&quot; align=&quot;center&quot;&gt;&lt;code&gt;l&lt;/code&gt;&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 133px; text-align: center;&quot;&gt;심볼릭 링크&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 226px; text-align: center;&quot;&gt;다른 파일을 가리키는 바로가기&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 198px; text-align: center;&quot;&gt;&lt;code&gt;python &amp;rarr; python3&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 21px;&quot;&gt;
&lt;td style=&quot;height: 21px; width: 58px; text-align: center;&quot; align=&quot;center&quot;&gt;&lt;code&gt;c&lt;/code&gt;&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 133px; text-align: center;&quot;&gt;문자 장치 파일&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 226px; text-align: center;&quot;&gt;문자 단위로 데이터 전송하는 장치&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 198px; text-align: center;&quot;&gt;&lt;code&gt;/dev/tty&lt;/code&gt; (터미널)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 21px;&quot;&gt;
&lt;td style=&quot;height: 21px; width: 58px; text-align: center;&quot; align=&quot;center&quot;&gt;&lt;code&gt;b&lt;/code&gt;&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 133px; text-align: center;&quot;&gt;블록 장치 파일&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 226px; text-align: center;&quot;&gt;블록 단위로 데이터 전송하는 장치&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 198px; text-align: center;&quot;&gt;&lt;code&gt;/dev/sda&lt;/code&gt; (하드디스크)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 21px;&quot;&gt;
&lt;td style=&quot;height: 21px; width: 58px; text-align: center;&quot; align=&quot;center&quot;&gt;&lt;code&gt;s&lt;/code&gt;&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 133px; text-align: center;&quot;&gt;소켓&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 226px; text-align: center;&quot;&gt;프로세스 간 네트워크 통신&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 198px; text-align: center;&quot;&gt;&lt;code&gt;/var/run/docker.sock&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 21px;&quot;&gt;
&lt;td style=&quot;height: 21px; width: 58px; text-align: center;&quot; align=&quot;center&quot;&gt;&lt;code&gt;p&lt;/code&gt;&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 133px; text-align: center;&quot;&gt;파이프 (FIFO)&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 226px; text-align: center;&quot;&gt;프로세스 간 단방향 데이터 전달&lt;/td&gt;
&lt;td style=&quot;height: 21px; width: 198px; text-align: center;&quot;&gt;명명된 파이프&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;좀 더 구체적인 예로 설명하면, 다음과 같이 리눅스(OS)의 역할 중 &lt;b&gt;파일 시스템 관리, I/O 장치 관리&lt;/b&gt; 등을 편하게 하기 위해 모든 것을 파일로 추상화해서 다룬다고 생각하면 된다.&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%; height: 126px;&quot; border=&quot;1&quot; data-ke-align=&quot;alignLeft&quot; data-ke-style=&quot;style8&quot;&gt;
&lt;tbody&gt;
&lt;tr style=&quot;height: 21px;&quot;&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;&lt;b&gt;대상&lt;/b&gt;&lt;/td&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;&lt;b&gt;파일로 생각하면&lt;/b&gt;&lt;/td&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;&lt;b&gt;예시&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 21px;&quot;&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;하드디스크&lt;/td&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;블록 장치 파일&lt;/td&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;/dev/sda&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 21px;&quot;&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;키보드 입력&lt;/td&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;문자 장치 파일&lt;/td&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;/dev/input/event0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 21px;&quot;&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;네트워크 통신&lt;/td&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;소켓 파일&lt;/td&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;/var/run/docker.sock&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 21px;&quot;&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;프로세스 정보&lt;/td&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;가상 파일&lt;/td&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;/proc/1/status&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;height: 21px;&quot;&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;시스템 정보&lt;/td&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;가상 파일&lt;/td&gt;
&lt;td style=&quot;width: 33.3333%; height: 21px;&quot;&gt;/sys/class/net/eth0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;그럼 어떤식으로 추상화할까? 일반 텍스트 파일 readme.txt를 생각해 보자.&lt;br /&gt;&lt;span style=&quot;letter-spacing: 0px;&quot;&gt;이 파일로 할 수 있는 것은 readme.txt의 내용을 확인하고 필요하면 내용을 수정(추가/삭제)하는 작업을 할 수 있다.&lt;br /&gt;이제 이 작업을 아래와 같이 나눠보자.&lt;/span&gt;&lt;/p&gt;
&lt;ol style=&quot;list-style-type: decimal;&quot; data-ke-list-type=&quot;decimal&quot;&gt;
&lt;li&gt;readme.txt 파일을 연다. open()&lt;/li&gt;
&lt;li&gt;readme.txt 내용을 확인한다. read()&lt;/li&gt;
&lt;li&gt;&quot;hello&quot;를 추가한다. write()&lt;/li&gt;
&lt;li&gt;저장하고 파일을 닫는다. close()&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;open(), read(), write(), close()을 &lt;a href=&quot;https://ko.wikipedia.org/wiki/%EC%8B%9C%EC%8A%A4%ED%85%9C_%ED%98%B8%EC%B6%9C&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;시스템 콜&lt;/a&gt;이라고 한다.&lt;/p&gt;
&lt;blockquote data-ke-style=&quot;style2&quot;&gt;시스템 콜,&amp;nbsp;사용자 프로그램이 운영체제 커널에게 서비스를 요청하는 인터페이스&lt;/blockquote&gt;
&lt;hr contenteditable=&quot;false&quot; data-ke-type=&quot;horizontalRule&quot; data-ke-style=&quot;style5&quot; /&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;이제부터 소켓은 왜 파일인지 그리고 왜 이렇게 설계했는지 알아보자&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;결론부터 말하면 리눅스가 다루게 될 모든 자원을 &lt;b&gt;동일한 인터페이스(방식)로 제어&lt;/b&gt;하려는 것이다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;소켓은 통신 인터페이스다. &lt;br /&gt;&lt;span style=&quot;letter-spacing: 0px;&quot;&gt;통신을 그냥 전화를 이용한 통화라고 생각할 때, 소켓은 전화기라고 생각해 보자. (당장 이해가 안된다면 조금만 더 따라와 보자)&lt;/span&gt;&lt;/p&gt;
&lt;ol style=&quot;list-style-type: decimal;&quot; data-ke-list-type=&quot;decimal&quot;&gt;
&lt;li&gt;통화를 원하는 사람 A가 전화기를 이용해 상대방 번호를 눌러 통화 요청을 한다. open_call()&lt;/li&gt;
&lt;li&gt;전화가 연결되면 A가 말을 한다. write_call()&lt;/li&gt;
&lt;li&gt;말을 끝내면 통화 상대 B의 대답을 듣는다. read_call()&lt;/li&gt;
&lt;li&gt;용건이 끝나면 통화를 종료한다. close_call()&lt;/li&gt;
&lt;/ol&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;이 비유가 완벽하진 않지만, 리눅스는 이렇게 모든 인터페이스를 동일한 방식으로 추상화하고 이것들을 모두 파일로 관리하게 설계된 것이다.&lt;/p&gt;
&lt;hr contenteditable=&quot;false&quot; data-ke-type=&quot;horizontalRule&quot; data-ke-style=&quot;style5&quot; /&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;주 독자가 개발자라 생각하기 때문에 &lt;b&gt;docker.sock&lt;/b&gt; 파일이 어떤 식으로 인터페이스화 돼서 명령을 처리하는지 설명하면 다음과 같다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-ke-mobileStyle=&quot;widthOrigin&quot; data-filename=&quot;docker socker-2025-12-28-153817.png&quot; data-origin-width=&quot;1590&quot; data-origin-height=&quot;3795&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/vArpm/dJMcaiPrDNA/z0BqGpNPOoU7iI7vRsDkc1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/vArpm/dJMcaiPrDNA/z0BqGpNPOoU7iI7vRsDkc1/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/vArpm/dJMcaiPrDNA/z0BqGpNPOoU7iI7vRsDkc1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FvArpm%2FdJMcaiPrDNA%2Fz0BqGpNPOoU7iI7vRsDkc1%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot; loading=&quot;lazy&quot; width=&quot;400&quot; height=&quot;955&quot; data-filename=&quot;docker socker-2025-12-28-153817.png&quot; data-origin-width=&quot;1590&quot; data-origin-height=&quot;3795&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;div data-ke-type=&quot;moreLess&quot; data-text-more=&quot;더보기&quot; data-text-less=&quot;닫기&quot;&gt;&lt;a class=&quot;btn-toggle-moreless&quot;&gt;더보기&lt;/a&gt;
&lt;div class=&quot;moreless-content&quot;&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;어떤 세상인데, 티스토리는 아직도 mermaid 지원을 안 할까?..&amp;nbsp;&lt;/p&gt;
&lt;pre id=&quot;code_1766936449865&quot; class=&quot;bash&quot; data-ke-language=&quot;bash&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;flowchart TB
    subgraph Terminal[&quot; ️ 터미널&quot;]
        A[&quot;$ docker ps&quot;]
    end
    
    A --&amp;gt;|&quot;① write: 컨테이너 목록 줘&quot;| B
    
    B[&quot;  docker.sock&amp;lt;br/&amp;gt;(소켓 파일)&quot;]
    
    B --&amp;gt;|&quot;② read: 요청 확인&quot;| C
    
    subgraph Daemon[&quot;  Docker Daemon&quot;]
        C[&quot;컨테이너 목록? OK!&quot;]
    end
    
    C --&amp;gt;|&quot;③ write: 결과 응답&quot;| D
    
    D[&quot;  docker.sock&quot;]
    
    D --&amp;gt;|&quot;④ read: 결과 수신&quot;| E
    
    subgraph Result[&quot;  결과 출력&quot;]
        E[&quot;CONTAINER ID | IMAGE | STATUS&amp;lt;br/&amp;gt;a1b2c3d4e5f6 | nginx | Up 2 hours&quot;]
    end&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;hr contenteditable=&quot;false&quot; data-ke-type=&quot;horizontalRule&quot; data-ke-style=&quot;style5&quot; /&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;결국 리눅스(OS)는 관리할 자원을 모두 파일로 보고 동일한 인터페이스로 제어해서 일관성이 있게 자원들을 관리할 수 있는 장점이 생겼다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;이젠 이 글의 제목인 &quot;&lt;b&gt;소켓은 파일이다&quot;&lt;/b&gt;를 넘어 &quot;&lt;b&gt;리눅스는 파일이다&quot;&lt;/b&gt;라고 말해도 될 것 같다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;극단적으로 생각하자. 이 세상(리눅스)엔 파일만 있다.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-ke-mobileStyle=&quot;widthOrigin&quot; data-filename=&quot;대파.jpg&quot; data-origin-width=&quot;686&quot; data-origin-height=&quot;786&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/CVnvS/dJMcajngWZM/UJspptQoGK9Pm8yY2bABYK/img.jpg&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/CVnvS/dJMcajngWZM/UJspptQoGK9Pm8yY2bABYK/img.jpg&quot; data-alt=&quot;출처: 흑백요리사 시즌2&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/CVnvS/dJMcajngWZM/UJspptQoGK9Pm8yY2bABYK/img.jpg&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FCVnvS%2FdJMcajngWZM%2FUJspptQoGK9Pm8yY2bABYK%2Fimg.jpg&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot; loading=&quot;lazy&quot; width=&quot;686&quot; height=&quot;786&quot; data-filename=&quot;대파.jpg&quot; data-origin-width=&quot;686&quot; data-origin-height=&quot;786&quot;/&gt;&lt;/span&gt;&lt;figcaption&gt;출처: 흑백요리사 시즌2&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;</description>
      <category>OS/Linux</category>
      <category>File</category>
      <category>Linux</category>
      <category>socket</category>
      <author>학학이</author>
      <guid isPermaLink="true">https://sanghaklee.tistory.com/77</guid>
      <comments>https://sanghaklee.tistory.com/77#entry77comment</comments>
      <pubDate>Mon, 29 Dec 2025 01:12:57 +0900</pubDate>
    </item>
    <item>
      <title>2025 CPPG 46회 차 합격 후기, 공부법 with NotebookLM</title>
      <link>https://sanghaklee.tistory.com/76</link>
      <description>&lt;p data-ke-size=&quot;size16&quot;&gt;2025.12.07(일)에 본 CPPG 시험, 솔직히 생각한 것보다 훨씬 어려웠다. &lt;br /&gt;&lt;br /&gt;문제은행 식의 시험들은 교재의 기출문제들만 계속 풀다 보면 실제 시험에서 기출문제와 유사한 문제가 나와서 학습하기 쉬운 편이었는데, CPPG는 그렇지 않은 시험 같다.&lt;br /&gt;&lt;br /&gt;헷갈릴 수밖에 없는 문제들이 많아서 시간도 넉넉하지 않았다. 30% 이상의 문제들을 최초에 답을 정하지 못하고 넘긴 후 다시 풀었다.&lt;br /&gt;&lt;br /&gt;후기를 보니 45회 차를 기점으로 시험 난이도가 많이 올라갔다고 하는데, 앞으로도 계속 이 정도 난이도를 유지할 것 같다.&lt;br /&gt;&lt;br /&gt;시험을 마치고&amp;nbsp;이건&amp;nbsp;운으로도&amp;nbsp;합격하기&amp;nbsp;어려울&amp;nbsp;것이라&amp;nbsp;생각했는데,&amp;nbsp;예상치&amp;nbsp;못하게&amp;nbsp;합격했다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-ke-mobileStyle=&quot;widthOrigin&quot; data-filename=&quot;blob&quot; data-origin-width=&quot;1181&quot; data-origin-height=&quot;278&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/m7Oox/dJMb99ZjsB7/nLA6LumVrTERMdnwjiPaS1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/m7Oox/dJMb99ZjsB7/nLA6LumVrTERMdnwjiPaS1/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/m7Oox/dJMb99ZjsB7/nLA6LumVrTERMdnwjiPaS1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fm7Oox%2FdJMb99ZjsB7%2FnLA6LumVrTERMdnwjiPaS1%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot; loading=&quot;lazy&quot; width=&quot;1181&quot; height=&quot;278&quot; data-filename=&quot;blob&quot; data-origin-width=&quot;1181&quot; data-origin-height=&quot;278&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;blockquote data-ke-style=&quot;style2&quot;&gt;겨우 합격이지만 합격은 합격!&lt;/blockquote&gt;
&lt;hr contenteditable=&quot;false&quot; data-ke-type=&quot;horizontalRule&quot; data-ke-style=&quot;style5&quot; /&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;br /&gt;&lt;b&gt;이제부터 본론인데,&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;CPPG&amp;nbsp;시험공부는&amp;nbsp;&lt;a href=&quot;https://notebooklm.google.com&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;NotebookLM&lt;/a&gt;&amp;nbsp;활용&amp;nbsp;위주로&amp;nbsp;했는데,&amp;nbsp;이&amp;nbsp;공부법이&amp;nbsp;상당히&amp;nbsp;효과적이었다. &lt;br /&gt;&lt;br /&gt;몇 가지&amp;nbsp;팁을&amp;nbsp;공유할 텐데,&amp;nbsp;가장&amp;nbsp;핵심이&amp;nbsp;되는&amp;nbsp;것은&amp;nbsp;&lt;b&gt;'퀴즈'&lt;/b&gt; 생성을 통한 문제 풀이였다.&lt;br /&gt;&lt;br /&gt;필자가 CPPG 공부하면서 이용한 교재는 다음과 같다.&lt;/p&gt;
&lt;ol style=&quot;list-style-type: decimal;&quot; data-ke-list-type=&quot;decimal&quot;&gt;
&lt;li&gt;인프런 - CPPG 개인정보관리사 자격증 취득하기 &lt;a href=&quot;https://inf.run/tpHbe&quot;&gt;https://inf.run/tpHbe&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;개인정보관리사(CPPG) 핵심 기본개념서 전자책 &lt;a href=&quot;https://smartstore.naver.com/csroadmap/products/6394915947&quot;&gt;https://smartstore.naver.com/csroadmap/products/6394915947&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;크몽 - 정보보호 전문가의 CPPG 핵심 요약노트 &lt;a href=&quot;https://kmong.com/gig/507031&quot;&gt;https://kmong.com/gig/507031&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote data-ke-style=&quot;style2&quot;&gt;인프런 강의의 경우 회사에서 일부 지원해 줘서 신청했고 '개인정보관리사(CPPG) 핵심 기본개념서 전자책'은 그 강의의 교재라 구매했다.&lt;br /&gt;&lt;br /&gt;전자책, 크몽 모두 괜찮은 콘텐츠들인데, 무료는 아니기 때문에 이미 교재를 구입한 분들이라면 중복 지출하지 않아도 될 것 같다.&lt;/blockquote&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;br /&gt;&lt;u&gt;&lt;i&gt;개인정보관리사(CPPG) 핵심 기본개념서 전자책&lt;/i&gt;&lt;/u&gt;만으론 &lt;b&gt;source&lt;/b&gt;가 부족하다고 생각해서 크몽에서 &lt;u&gt;&lt;i&gt;CPPG&amp;nbsp;요약노트&lt;/i&gt;&lt;/u&gt;를&amp;nbsp;추가로&amp;nbsp;구매했다. &lt;br /&gt;&lt;br /&gt;여기서&amp;nbsp;source라고&amp;nbsp;표현한&amp;nbsp;것은&amp;nbsp;이게&amp;nbsp;&lt;b&gt;NotebookLM에&amp;nbsp;넣어서&amp;nbsp;공부할&amp;nbsp;자료가&amp;nbsp;된다는&amp;nbsp;의미다. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;사실 처음부터 실물책이 필요가 없었다. 처음부터 NotebookLM을 이용해서 공부할 계획이었다. (많은 분들이 초록책을 추천하는데, 필자는 어느 순간부터 자격증 교재도 ebook 위주로 구매한다.)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;그리고 46회 차 시험을 보니 이 학습법이 옳았던 것 같다.&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;이 시험은 핵심 개념만 요약해서 키워드들을 잘 학습하는 것이 기본인 것 같다. 만약 고득점을 받고 싶다면 `&lt;a href=&quot;https://www.privacy.go.kr/front/contents/cntntsView.do?contsNo=36&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;개인정보보호법&lt;/a&gt;`을 매우 꼼꼼히 알아야 한다. (단기간엔 쉽지 않은 방법이다)&lt;br /&gt;&lt;br /&gt;그래서 내 합격 점수가 최소 커트라인인 60점을 겨우 넘긴 것 같다.&lt;/p&gt;
&lt;blockquote data-ke-style=&quot;style2&quot;&gt;실제 시험 문제를 푸는 과정에서도 개인정보보호법의 세부적인 조항과 관련된 문제에서 고전했다.&lt;/blockquote&gt;
&lt;hr contenteditable=&quot;false&quot; data-ke-style=&quot;style5&quot; data-ke-type=&quot;horizontalRule&quot; /&gt;
&lt;p style=&quot;color: #333333; text-align: start;&quot; data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;이제부터 이 글의 궁극적인 목표인 NotebookLM을 이용한 학습법에 대해 설명한다.&lt;/b&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;백문이 불여일견&lt;/b&gt;이라고 저작권 문제없이 공유할 수 있는 소스로만 구성된 노트북을 공유했으니 이를 참고하면 된다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;a title=&quot;공개 노트북&quot; href=&quot;https://notebooklm.google.com/notebook/09f3f774-0683-4dff-96d0-ca072129eda7&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;b&gt;https://notebooklm.google.com/notebook/09f3f774-0683-4dff-96d0-ca072129eda7&lt;/b&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;br /&gt;필자가 다음과 같은 source를 미리 준비했다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-ke-mobileStyle=&quot;widthOrigin&quot; data-filename=&quot;출처.png&quot; data-origin-width=&quot;632&quot; data-origin-height=&quot;521&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/cxhc9M/dJMcafLZwUU/q2dOdSsLIN58fGfv1RIDk1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/cxhc9M/dJMcafLZwUU/q2dOdSsLIN58fGfv1RIDk1/img.png&quot; data-alt=&quot;필자의 경우 비공개 노트북엔 구매한 소스를 더 추가했다.&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/cxhc9M/dJMcafLZwUU/q2dOdSsLIN58fGfv1RIDk1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fcxhc9M%2FdJMcafLZwUU%2Fq2dOdSsLIN58fGfv1RIDk1%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot; loading=&quot;lazy&quot; width=&quot;632&quot; height=&quot;521&quot; data-filename=&quot;출처.png&quot; data-origin-width=&quot;632&quot; data-origin-height=&quot;521&quot;/&gt;&lt;/span&gt;&lt;figcaption&gt;필자의 경우 비공개 노트북엔 구매한 소스를 더 추가했다.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;ol style=&quot;list-style-type: decimal;&quot; data-ke-list-type=&quot;decimal&quot;&gt;
&lt;li&gt;&lt;b&gt; 개인정보&amp;nbsp;보호법(법률)(제20897호)(20251002).pdf&lt;/b&gt; -&amp;nbsp;국가법령정보센터에서&amp;nbsp;다운로드한&amp;nbsp;개인정보&amp;nbsp;보호법&amp;nbsp;법률이다.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;b&gt; 개인정보_보호법_해석_사례집_1.0_202406.pdf&lt;/b&gt;&amp;nbsp;-&amp;nbsp;개인정보보호위원회에서&amp;nbsp;제공하는&amp;nbsp;사례집이다.&lt;/li&gt;
&lt;li&gt;&lt;b&gt; CPPG&amp;nbsp;출제기준.md&lt;/b&gt;&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;https://cpptest.or.kr/new&quot;&gt;https://cpptest.or.kr/new&lt;/a&gt;&amp;nbsp;출제기준&amp;nbsp;내용을&amp;nbsp;발췌한&amp;nbsp;것이다.&lt;/li&gt;
&lt;li&gt;&lt;b&gt; CPPG 생성 문제 10제.pdf&lt;/b&gt; - 필자가 AI 서비스로 생성한 예상 문제이다. (필자가 생성한 것이라 기출문제는 아니다)&lt;/li&gt;
&lt;/ol&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;혹시나 필요한 사람들이 있을 것 같아 첨부하는데, 개인정보 보호법과 해석집은 최신 자료들을 쉽게 얻을 수 있기 때문에 최신 자료를 직접 찾는 것을 추천한다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;fileblock&quot; data-ke-align=&quot;alignCenter&quot;&gt;&lt;a href=&quot;https://blog.kakaocdn.net/dn/UUgnF/dJMcahQzN4b/xK9T7V3W9g6wYGx086ZgKk/%EA%B0%9C%EC%9D%B8%EC%A0%95%EB%B3%B4%20%EB%B3%B4%ED%98%B8%EB%B2%95%28%EB%B2%95%EB%A5%A0%29%28%EC%A0%9C20897%ED%98%B8%29%2820251002%29.pdf?attach=1&amp;amp;knm=tfile.pdf&quot; class=&quot;&quot;&gt;
    &lt;div class=&quot;image&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;desc&quot;&gt;&lt;div class=&quot;filename&quot;&gt;&lt;span class=&quot;name&quot;&gt;개인정보 보호법(법률)(제20897호)(20251002).pdf&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;size&quot;&gt;0.25MB&lt;/div&gt;
&lt;/div&gt;
  &lt;/a&gt;&lt;/figure&gt;
&lt;figure class=&quot;fileblock&quot; data-ke-align=&quot;alignCenter&quot;&gt;&lt;a href=&quot;https://blog.kakaocdn.net/dn/bsMfBr/dJMcaaKGmmR/8GA4KVJAmPYY6nyh9KUFfK/%EA%B0%9C%EC%9D%B8%EC%A0%95%EB%B3%B4_%EB%B3%B4%ED%98%B8%EB%B2%95_%ED%95%B4%EC%84%9D_%EC%82%AC%EB%A1%80%EC%A7%91_1.0_202406.pdf?attach=1&amp;amp;knm=tfile.pdf&quot; class=&quot;&quot;&gt;
    &lt;div class=&quot;image&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;desc&quot;&gt;&lt;div class=&quot;filename&quot;&gt;&lt;span class=&quot;name&quot;&gt;개인정보_보호법_해석_사례집_1.0_202406.pdf&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;size&quot;&gt;0.86MB&lt;/div&gt;
&lt;/div&gt;
  &lt;/a&gt;&lt;/figure&gt;
&lt;figure class=&quot;fileblock&quot; data-ke-align=&quot;alignCenter&quot;&gt;&lt;a href=&quot;https://blog.kakaocdn.net/dn/TisHZ/dJMcaiIF34j/kVybbvGr1TtkBlwK3JxSMk/CPPG%20%EC%B6%9C%EC%A0%9C%EA%B8%B0%EC%A4%80.md?attach=1&amp;amp;knm=tfile.md&quot; class=&quot;&quot;&gt;
    &lt;div class=&quot;image&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;desc&quot;&gt;&lt;div class=&quot;filename&quot;&gt;&lt;span class=&quot;name&quot;&gt;CPPG 출제기준.md&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;size&quot;&gt;0.00MB&lt;/div&gt;
&lt;/div&gt;
  &lt;/a&gt;&lt;/figure&gt;
&lt;figure class=&quot;fileblock&quot; data-ke-align=&quot;alignCenter&quot;&gt;&lt;a href=&quot;https://blog.kakaocdn.net/dn/Vcqi9/dJMcad1EFB9/Gkq4vn5sKAXKaitBhASzi0/CPPG%20%EC%83%9D%EC%84%B1%20%EB%AC%B8%EC%A0%9C%2010%EC%A0%9C.pdf?attach=1&amp;amp;knm=tfile.pdf&quot; class=&quot;&quot;&gt;
    &lt;div class=&quot;image&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;desc&quot;&gt;&lt;div class=&quot;filename&quot;&gt;&lt;span class=&quot;name&quot;&gt;CPPG 생성 문제 10제.pdf&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;size&quot;&gt;0.27MB&lt;/div&gt;
&lt;/div&gt;
  &lt;/a&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;공부법 공유를 위한 노트북이기 때문에 쉽게 얻을 수 있는 자료와 필자가 생성한 자료만으로 간단하게 만든 것이다.&lt;br /&gt;만약 이 공부법을 활용할 예정이라면 비공개 개인 노트북을 만들고 CPPG 학습을 위한 모든 자료를 source로 추가하면 된다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;a href=&quot;https://cafe.naver.com/cppgwin&quot; target=&quot;_blank&quot; rel=&quot;noopener&amp;nbsp;noreferrer&quot;&gt;https://cafe.naver.com/cppgwin&lt;/a&gt;카페에 가입하면 다양한 자료를 얻을 수 있다. (필자의 개인 노트북에선 활용하진 않았다.)&lt;/p&gt;
&lt;hr contenteditable=&quot;false&quot; data-ke-type=&quot;horizontalRule&quot; data-ke-style=&quot;style5&quot; /&gt;
&lt;blockquote data-ke-style=&quot;style2&quot;&gt;앞으로 나올 캡처의 내용 중 퀴즈 생성을 포함한 스튜디오 콘텐츠 생성은 공개 노트북에선 불가하다. (필자의 노트북이기 때문에 읽기만 가능하다)&lt;br /&gt;공개 노트북은 필자가 미리 제공한 스튜디오 콘테츠만 이용할 수 있다.&lt;br /&gt;따라서 아래 내용을 읽고 NotebookLM에서 직접 노트북을 만들고 위 source들을 추가해서 이용하면 된다.&lt;/blockquote&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;b&gt;NotebookLM에&amp;nbsp;다양한&amp;nbsp;기능이&amp;nbsp;있는데,&amp;nbsp;그중에서&amp;nbsp;가장&amp;nbsp;핵심적인&amp;nbsp;기능은&amp;nbsp;'퀴즈'&amp;nbsp;생성이다.&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;우측의&amp;nbsp;스튜디오&amp;nbsp;탭에서&lt;b&gt;&amp;nbsp;'퀴즈'&lt;/b&gt;를&amp;nbsp;선택하고&amp;nbsp;다음과&amp;nbsp;같이&amp;nbsp;설정한다.&lt;br /&gt;여기서 퀴즈 카드를 선택하면 기본 값으로 퀴즈를 생성하기 때문에 연필 모양 아이콘을 눌러 맞춤설정으로 들어가야 한다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-ke-mobileStyle=&quot;widthOrigin&quot; data-filename=&quot;스튜디오.png&quot; data-origin-width=&quot;625&quot; data-origin-height=&quot;265&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/m2ZVN/dJMcacocaq1/Os224ApMgukEKFLYrIONak/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/m2ZVN/dJMcacocaq1/Os224ApMgukEKFLYrIONak/img.png&quot; data-alt=&quot;퀴즈말고 다양한 콘텐츠를 제공한다. 근데 퀴즈가 가장 유용하다.&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/m2ZVN/dJMcacocaq1/Os224ApMgukEKFLYrIONak/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fm2ZVN%2FdJMcacocaq1%2FOs224ApMgukEKFLYrIONak%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot; loading=&quot;lazy&quot; width=&quot;625&quot; height=&quot;265&quot; data-filename=&quot;스튜디오.png&quot; data-origin-width=&quot;625&quot; data-origin-height=&quot;265&quot;/&gt;&lt;/span&gt;&lt;figcaption&gt;퀴즈말고 다양한 콘텐츠를 제공한다. 근데 퀴즈가 가장 유용하다.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;br /&gt;&lt;br /&gt;퀴즈 맞춤설정에 들어가서 &lt;b&gt;'주제는 무엇인가요?'&lt;/b&gt; 부분에 source로 제공된 &lt;b&gt;'CPPG 출제기준.md'&lt;/b&gt; 내용을 복사해서 붙여 넣기 한다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-ke-mobileStyle=&quot;widthOrigin&quot; data-filename=&quot;퀴즈 맞춤설정.png&quot; data-origin-width=&quot;874&quot; data-origin-height=&quot;519&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/yDTUO/dJMcagc4mRf/Sxsp6b8YmltfkOznYYLkL1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/yDTUO/dJMcagc4mRf/Sxsp6b8YmltfkOznYYLkL1/img.png&quot; data-alt=&quot;난이도는 어려움을 추천한다. 실제 CPPG 시험 난이도가 더 높다.&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/yDTUO/dJMcagc4mRf/Sxsp6b8YmltfkOznYYLkL1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FyDTUO%2FdJMcagc4mRf%2FSxsp6b8YmltfkOznYYLkL1%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot; loading=&quot;lazy&quot; width=&quot;874&quot; height=&quot;519&quot; data-filename=&quot;퀴즈 맞춤설정.png&quot; data-origin-width=&quot;874&quot; data-origin-height=&quot;519&quot;/&gt;&lt;/span&gt;&lt;figcaption&gt;난이도는 어려움을 추천한다. 실제 CPPG 시험 난이도가 더 높다.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&lt;br /&gt;&lt;br /&gt;그러면&amp;nbsp;몇&amp;nbsp;분 후에&amp;nbsp;퀴즈가&amp;nbsp;생성된다. 이 퀴즈들은 내가 제공한 source 기반으로 생성된다. (이에 대한 자세한 설명은 뒤에서)&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-ke-mobileStyle=&quot;widthOrigin&quot; data-filename=&quot;문제1.png&quot; data-origin-width=&quot;566&quot; data-origin-height=&quot;684&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/n08Gs/dJMcadAAIab/ZtSjkqkKEv7l4Dyz7RFd9K/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/n08Gs/dJMcadAAIab/ZtSjkqkKEv7l4Dyz7RFd9K/img.png&quot; data-alt=&quot;30개 문제나 만들어주고 문제도 기출문제집의 문제들을 잘 모방했다.&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/n08Gs/dJMcadAAIab/ZtSjkqkKEv7l4Dyz7RFd9K/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fn08Gs%2FdJMcadAAIab%2FZtSjkqkKEv7l4Dyz7RFd9K%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot; loading=&quot;lazy&quot; width=&quot;566&quot; height=&quot;684&quot; data-filename=&quot;문제1.png&quot; data-origin-width=&quot;566&quot; data-origin-height=&quot;684&quot;/&gt;&lt;/span&gt;&lt;figcaption&gt;30개 문제나 만들어주고 문제도 기출문제집의 문제들을 잘 모방했다.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;정답이라고 생각되는 문항을 클릭하면 이렇게 정답 여부와 정답인 경우 이유에 대해 설명해 준다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-ke-mobileStyle=&quot;widthOrigin&quot; data-filename=&quot;문제1-정답시.png&quot; data-origin-width=&quot;671&quot; data-origin-height=&quot;636&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/b7L5DK/dJMcabCOKJ0/TDEKHwDrXdKNY9cqubN7p0/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/b7L5DK/dJMcabCOKJ0/TDEKHwDrXdKNY9cqubN7p0/img.png&quot; data-alt=&quot;뒤에서 설명하겠지만, 다른 문항이 왜 오답인지 쉽게 확인할 수 없다. 즉 선택한 답을 번복해서 설명을 보는 기능은 없다.&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/b7L5DK/dJMcabCOKJ0/TDEKHwDrXdKNY9cqubN7p0/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb7L5DK%2FdJMcabCOKJ0%2FTDEKHwDrXdKNY9cqubN7p0%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot; loading=&quot;lazy&quot; width=&quot;671&quot; height=&quot;636&quot; data-filename=&quot;문제1-정답시.png&quot; data-origin-width=&quot;671&quot; data-origin-height=&quot;636&quot;/&gt;&lt;/span&gt;&lt;figcaption&gt;뒤에서 설명하겠지만, 다른 문항이 왜 오답인지 쉽게 확인할 수 없다. 즉 선택한 답을 번복해서 설명을 보는 기능은 없다.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;문제 아래 &lt;b&gt;'설명'&lt;/b&gt; 버튼이 있는데, 클릭하면 이 문제의 답에 대한 근거를 설명해 준다.&lt;br /&gt;이건 퀴즈의 고유 기능이 아니고 NotebookLM이 ChaGPT처럼 기본은 채팅 인터페이스인데, 채팅창에 질문을 자동으로 입력해 주고 그에 대한 답변을 하는 구조로 되어 있다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-ke-mobileStyle=&quot;widthOrigin&quot; data-filename=&quot;문제1-설명.png&quot; data-origin-width=&quot;1119&quot; data-origin-height=&quot;885&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/paVjs/dJMcaiPriJM/au47kEPDr3vNg3066juok0/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/paVjs/dJMcaiPriJM/au47kEPDr3vNg3066juok0/img.png&quot; data-alt=&quot;채팅창의 설명이 부족하면 추가로 더 질문할 수도 있다. 그냥 ChatGPT 쓰듯 채팅하면 된다.&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/paVjs/dJMcaiPriJM/au47kEPDr3vNg3066juok0/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FpaVjs%2FdJMcaiPriJM%2Fau47kEPDr3vNg3066juok0%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot; loading=&quot;lazy&quot; width=&quot;1119&quot; height=&quot;885&quot; data-filename=&quot;문제1-설명.png&quot; data-origin-width=&quot;1119&quot; data-origin-height=&quot;885&quot;/&gt;&lt;/span&gt;&lt;figcaption&gt;채팅창의 설명이 부족하면 추가로 더 질문할 수도 있다. 그냥 ChatGPT 쓰듯 채팅하면 된다.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;만약 오답을 선택하면 어떤 문항이 정답인지와 그 이유를 알려주고 오답에 대한 간략한 설명도 해준다.&amp;nbsp;&lt;br /&gt;그리고 정답의 경우와 동일하게 문제 정답/오답에 대한 자세한 &lt;b&gt;'설명'&lt;/b&gt;을 확인할 수 있다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-ke-mobileStyle=&quot;widthOrigin&quot; data-filename=&quot;문제2-오답시.png&quot; data-origin-width=&quot;1139&quot; data-origin-height=&quot;839&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/RlJS2/dJMcagc4tvY/ufVp0cUHpW5Ku7RVKdXwa1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/RlJS2/dJMcagc4tvY/ufVp0cUHpW5Ku7RVKdXwa1/img.png&quot; data-alt=&quot;기출문제집이 필요 없음을 체감하게 되는 순간이다.&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/RlJS2/dJMcagc4tvY/ufVp0cUHpW5Ku7RVKdXwa1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FRlJS2%2FdJMcagc4tvY%2FufVp0cUHpW5Ku7RVKdXwa1%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot; loading=&quot;lazy&quot; width=&quot;1139&quot; height=&quot;839&quot; data-filename=&quot;문제2-오답시.png&quot; data-origin-width=&quot;1139&quot; data-origin-height=&quot;839&quot;/&gt;&lt;/span&gt;&lt;figcaption&gt;기출문제집이 필요 없음을 체감하게 되는 순간이다.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;그리고 정말 좋은 기능이 '설명' 버튼을 누르면 내용에서 번호의 '각주' 버튼을 누를 수 있는데, 이 설명이 내가 제공한 어떤 source에서 근거한 것인지 설명해 준다. &lt;b&gt;이게 정말 도움이 많이 되는 기능이다.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-ke-mobileStyle=&quot;widthOrigin&quot; data-filename=&quot;문제2-오답-근거.png&quot; data-origin-width=&quot;1141&quot; data-origin-height=&quot;1031&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/ErDPZ/dJMcabphmD3/QIzK0BAMaLmMbqUr8zlpW1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/ErDPZ/dJMcabphmD3/QIzK0BAMaLmMbqUr8zlpW1/img.png&quot; data-alt=&quot;할루시네이션, 즉 AI가 이상한 헛소리 하고 있지 않구나를 직관적으로 알 수 있다.&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/ErDPZ/dJMcabphmD3/QIzK0BAMaLmMbqUr8zlpW1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FErDPZ%2FdJMcabphmD3%2FQIzK0BAMaLmMbqUr8zlpW1%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot; loading=&quot;lazy&quot; width=&quot;1141&quot; height=&quot;1031&quot; data-filename=&quot;문제2-오답-근거.png&quot; data-origin-width=&quot;1141&quot; data-origin-height=&quot;1031&quot;/&gt;&lt;/span&gt;&lt;figcaption&gt;할루시네이션, 즉 AI가 이상한 헛소리 하고 있지 않구나를 직관적으로 알 수 있다.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;이렇게 다양한 퀴즈를 계속 만들어서 학습할 수 있고 문제들은 AI가 제멋대로 생성한 것이 아닌 내가 제공한 source를 기반으로 하기 때문에 신뢰할 수 있다.&lt;br /&gt;CPPG 같은 객관식 문제 시험의 경우 많은 기출문제를 풀어보는 것이 시험에 빠르게 합격할 수 있는 방법인데, 현재 시중에 나온 기출문제 도서론 한계가 있다. (약간 특이점이 와서 기존 기출문제를 꼬아서 출제하는 경우가 생기는 것 같다.)&lt;br /&gt;실물 도서의 경우 오답 노트를 도서의 설명에만 의존할 수밖에 없고 시간이 지나면 법령이 바뀌면서 최신 문제가 아니게 되는 문제가 생길 수 있는데, NotebookLM은 이러한 단점을 보완해 준다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;NotebookLM을 활용하면 개인 선생님을 두고 과외를 받고 있는 것 같은 기분이 든다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;그래서 공개 노트북도 &lt;b&gt;CPPG 선생님&lt;/b&gt;이라고 이름을 지었다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;퀴즈 기능 말고 마인드맵, 플래시카드, 동영상 만들기, 등&amp;nbsp; 다양한 기능을 제공하니 한 번씩 다 이용해 보면 NotebookLM이 왜 선생님인지 더 확실히 체감할 수 있다.&lt;/p&gt;
&lt;hr contenteditable=&quot;false&quot; data-ke-type=&quot;horizontalRule&quot; data-ke-style=&quot;style5&quot; /&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;마지막으로, 완벽한 도구가 어디 있겠는가 NotebookLM의 퀴즈에서도 불편한 점이 있다.&lt;/p&gt;
&lt;ol style=&quot;list-style-type: decimal;&quot; data-ke-list-type=&quot;decimal&quot;&gt;
&lt;li&gt;선택한 문항 외 다른 문항이 왜 틀렸는지 / 왜 맞았는지 쉽게 확인할 수 없다.&lt;/li&gt;
&lt;li&gt;만들어진 퀴즈를 풀다가 뒤로 가면 이전에 선택한 답변들이 모두 초기화된다.&lt;/li&gt;
&lt;/ol&gt;</description>
      <category>cppg</category>
      <category>google</category>
      <category>notebooklm</category>
      <category>개보법</category>
      <category>개인정보보호</category>
      <author>학학이</author>
      <guid isPermaLink="true">https://sanghaklee.tistory.com/76</guid>
      <comments>https://sanghaklee.tistory.com/76#entry76comment</comments>
      <pubDate>Sun, 28 Dec 2025 01:38:01 +0900</pubDate>
    </item>
    <item>
      <title>[Python] the virtual environment was not created successfully because ensurepip is not available.</title>
      <link>https://sanghaklee.tistory.com/75</link>
      <description>&lt;pre id=&quot;code_1618368119721&quot; class=&quot;java&quot; data-ke-language=&quot;java&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;$ python --version
Python 3.8.0

$ python3 --version
Python 3.6.9&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;한 OS에서 여러 버전의 Python이 설치된 경우 발생함&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre id=&quot;code_1618368587630&quot; class=&quot;python&quot; data-ke-language=&quot;python&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;$ python3.8 -m venv .venv
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt-get install python3-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/home/lsh/metal-api/.venv38/bin/python3.8', '-Im', 'ensurepip', '--upgrade', '--default-pip']&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;python3-venv &lt;/b&gt;설치하라고 나오지만, python3.8을 사용한다면 아래와 같이 &lt;b&gt;python3.8-venv&lt;/b&gt;를 설치해야 한다.&lt;/p&gt;
&lt;pre id=&quot;code_1618368623005&quot; class=&quot;python&quot; data-ke-language=&quot;python&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;$ apt-get install python3-venv

$ apt-get install python3.8-venv&lt;/code&gt;&lt;/pre&gt;</description>
      <category>Python</category>
      <category>PIP</category>
      <category>python</category>
      <author>학학이</author>
      <guid isPermaLink="true">https://sanghaklee.tistory.com/75</guid>
      <comments>https://sanghaklee.tistory.com/75#entry75comment</comments>
      <pubDate>Wed, 14 Apr 2021 11:51:37 +0900</pubDate>
    </item>
    <item>
      <title>[Java / JUnit4] log4j:WARN No appenders could be found for logger</title>
      <link>https://sanghaklee.tistory.com/74</link>
      <description>&lt;h2 data-ke-size=&quot;size26&quot;&gt;log4j:WARN&amp;nbsp;No&amp;nbsp;appenders&amp;nbsp;could&amp;nbsp;be&amp;nbsp;found&amp;nbsp;for&amp;nbsp;logger&amp;nbsp;&lt;b&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;blockquote data-ke-style=&quot;style2&quot;&gt;&lt;b&gt;모든 레거시인들을 위해&lt;br /&gt;&lt;/b&gt;&lt;b&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;h4 data-ke-size=&quot;size20&quot;&gt;&amp;nbsp;&lt;/h4&gt;
&lt;h3 data-ke-size=&quot;size23&quot;&gt;환경&lt;/h3&gt;
&lt;ul style=&quot;list-style-type: disc;&quot; data-ke-list-type=&quot;disc&quot;&gt;
&lt;li&gt;JUnit4 사용&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;letter-spacing: 0px;&quot;&gt;Spring or Spring boot 환경 아님&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 data-ke-size=&quot;size20&quot;&gt;&amp;nbsp;&lt;/h4&gt;
&lt;h3 data-ke-size=&quot;size23&quot;&gt;오류 내용&lt;/h3&gt;
&lt;p&gt;애플리케이션을 구동했을 땐, log4j 로그가 잘 나온다.&lt;/p&gt;
&lt;p&gt;그러나 JUnit4를 이용한 유닛 테스트에선 로그가 안 찍힌다.&lt;/p&gt;
&lt;pre id=&quot;code_1617349877668&quot; class=&quot;java&quot; data-ke-language=&quot;java&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;log4j:WARN No appenders could be found for logger (com.xxx.xxx).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3 data-ke-size=&quot;size23&quot;&gt;해결책&lt;/h3&gt;
&lt;p&gt;&lt;b&gt;BasicConfigurator.configure();&lt;/b&gt;&lt;/p&gt;
&lt;pre id=&quot;code_1617350116905&quot; class=&quot;javascript&quot; data-ke-language=&quot;javascript&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;@BeforeClass
public static void setUp() {
    BasicConfigurator.configure(); // NOTE: for junit4 log 
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/12532339/no-appenders-could-be-found-for-loggerlog4j&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;stackoverflow.com/questions/12532339/no-appenders-could-be-found-for-loggerlog4j&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;blockquote data-ke-style=&quot;style2&quot;&gt;&lt;b&gt;For all legacy masters.&lt;/b&gt;&lt;/blockquote&gt;</description>
      <category>Java</category>
      <category>java</category>
      <category>junit4</category>
      <author>학학이</author>
      <guid isPermaLink="true">https://sanghaklee.tistory.com/74</guid>
      <comments>https://sanghaklee.tistory.com/74#entry74comment</comments>
      <pubDate>Fri, 2 Apr 2021 17:00:54 +0900</pubDate>
    </item>
    <item>
      <title>Ubuntu 18.04(Bionic) Python 3.8 설치</title>
      <link>https://sanghaklee.tistory.com/73</link>
      <description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ubuntu 18.04에선 Python 3.6.x가 기본 pyhton3. 또한 python2가 기본 Python&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://packages.ubuntu.com/bionic/python3&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;packages.ubuntu.com/bionic/python3&lt;/a&gt;&lt;/p&gt;
&lt;figure id=&quot;og_1614860814508&quot; contenteditable=&quot;false&quot; data-ke-type=&quot;opengraph&quot; data-og-type=&quot;website&quot; data-og-title=&quot;Ubuntu &amp;ndash; Details of package python3 in bionic&quot; data-og-description=&quot;Package: python3 (3.6.5-3) interactive high-level object-oriented language (default python3 version) Other Packages Related to python3 dep: python3-minimal (= 3.6.5-3) minimal subset of the Python language (default python3 version) dep: libpython3-stdlib (&quot; data-og-host=&quot;packages.ubuntu.com&quot; data-og-source-url=&quot;https://packages.ubuntu.com/bionic/python3&quot; data-og-url=&quot;https://packages.ubuntu.com/bionic/python3&quot; data-og-image=&quot;&quot;&gt;&lt;a href=&quot;https://packages.ubuntu.com/bionic/python3&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; data-source-url=&quot;https://packages.ubuntu.com/bionic/python3&quot;&gt;
&lt;div class=&quot;og-image&quot; style=&quot;background-image: url();&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;og-text&quot;&gt;
&lt;p class=&quot;og-title&quot;&gt;Ubuntu &amp;ndash; Details of package python3 in bionic&lt;/p&gt;
&lt;p class=&quot;og-desc&quot;&gt;Package: python3 (3.6.5-3) interactive high-level object-oriented language (default python3 version) Other Packages Related to python3 dep: python3-minimal (= 3.6.5-3) minimal subset of the Python language (default python3 version) dep: libpython3-stdlib (&lt;/p&gt;
&lt;p class=&quot;og-host&quot;&gt;packages.ubuntu.com&lt;/p&gt;
&lt;/div&gt;
&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;따라서, python3.8을 설치하고 &lt;span style=&quot;color: #333333;&quot;&gt;기본 Python을 python 3.8로 변경한다.&lt;/span&gt;&lt;/p&gt;
&lt;pre id=&quot;code_1614861288784&quot; class=&quot;python&quot; data-ke-language=&quot;python&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION=&quot;Ubuntu 18.04.2 LTS&quot;
NAME=&quot;Ubuntu&quot;
VERSION=&quot;18.04.2 LTS (Bionic Beaver)&quot;
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=&quot;Ubuntu 18.04.2 LTS&quot;
VERSION_ID=&quot;18.04&quot;
HOME_URL=&quot;https://www.ubuntu.com/&quot;
SUPPORT_URL=&quot;https://help.ubuntu.com/&quot;
BUG_REPORT_URL=&quot;https://bugs.launchpad.net/ubuntu/&quot;
PRIVACY_POLICY_URL=&quot;https://www.ubuntu.com/legal/terms-and-policies/privacy-policy&quot;
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

$ sudo apt update

$ sudo apt install python3.8
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다       
상태 정보를 읽는 중입니다... 완료
다음의 추가 패키지가 설치될 것입니다 :
  libpython3.8-minimal libpython3.8-stdlib python3.8-minimal
제안하는 패키지:
  python3.8-venv python3.8-doc binfmt-support
다음 새 패키지를 설치할 것입니다:
  libpython3.8-minimal libpython3.8-stdlib python3.8 python3.8-minimal
0개 업그레이드, 4개 새로 설치, 0개 제거 및 299개 업그레이드 안 함.
4,550 k바이트 아카이브를 받아야 합니다.
이 작업 후 18.5 M바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까? [Y/n] y

$ python3 -V
Python 3.6.7

$ python3.8 -V
Python 3.8.0

$ update-alternatives --config python
update-alternatives: 오류: no alternatives for python

$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1
update-alternatives: using /usr/bin/python3.8 to provide /usr/bin/python (python) in auto mode

$ python3 -V
Python 3.8.0

$ python -V
Python 3.8.0&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <category>Python</category>
      <category>python</category>
      <category>ubuntu</category>
      <author>학학이</author>
      <guid isPermaLink="true">https://sanghaklee.tistory.com/73</guid>
      <comments>https://sanghaklee.tistory.com/73#entry73comment</comments>
      <pubDate>Thu, 4 Mar 2021 21:37:24 +0900</pubDate>
    </item>
    <item>
      <title>[JavaScript] 원시 타입과 참조 타입 질문 1</title>
      <link>https://sanghaklee.tistory.com/72</link>
      <description>&lt;p&gt;&lt;a href=&quot;https://sanghaklee.tistory.com/23&quot;&gt;2016/04/13 - [JavaScript] - [JavaScript] 원시 타입과 참조 타입&lt;/a&gt;&amp;nbsp;질문에 대한 답변입니다.&lt;/p&gt;
&lt;h2 data-ke-size=&quot;size26&quot;&gt;질문&lt;/h2&gt;
&lt;blockquote data-ke-style=&quot;style3&quot;&gt;&quot;자바스크립트 변수는 원시타입 값이 그대로 저장된다.(메모리 참조가 아닌 값의 복사)&quot; 라는 부분에서 궁금한 점이 있습니다.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;color1 = &quot;red&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;color2 = color1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;이 상태에서는 color1 변수가 &quot;red&quot;라는 값을 가진 메모리 주소를 바라보고,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;color2 = color1 를 하는 순간 color2는 color1이 바라보는 메모리 주소 값을 바라봅니다.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;이후 color1 = &quot;blue&quot; 를 하면, color1가 바라보던 메모리에 값이 새로 할당되어 할당 된 주소를 바라보는 것으로 알고 있습니다.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;좀 지난 글이긴 해도 학습 중에 궁금한 점이라 여쭤봅니다!&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2 data-ke-size=&quot;size26&quot;&gt;답변&lt;/h2&gt;
&lt;blockquote data-ke-size=&quot;size16&quot; data-ke-style=&quot;style2&quot;&gt;&lt;s&gt;&lt;span style=&quot;color: #666666;&quot;&gt;color2 = color1 를 하는 순간 color2는 color1이 바라보는 메모리 주소 값을 바라봅니다.&lt;br /&gt;&lt;/span&gt;&lt;/s&gt;&lt;/blockquote&gt;
&lt;p data-ke-size=&quot;size18&quot;&gt;JavaScirpt는 원시 타입의 경우 값을 복사하여 새로운 메모리 주소를 할당받습니다.&lt;/p&gt;
&lt;p data-ke-size=&quot;size18&quot;&gt;즉, color2는 color1의 메모리 주소 값을 바라보지 않고 새로운 메모리 주소를 할당받고 color1의 메모리에 쓰인 값을 복사해서 color2 메모리에 값을 할당합니다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-filename=&quot;원시타입-값의복사.png&quot; data-origin-width=&quot;960&quot; data-origin-height=&quot;720&quot; data-image-src=&quot;https://blog.kakaocdn.net/dn/Ij2HC/btqKgFshY3n/IQiPa4jhGvFzMgCkKkOoFk/img.png&quot; data-ke-mobilestyle=&quot;widthContent&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/Ij2HC/btqKgFshY3n/IQiPa4jhGvFzMgCkKkOoFk/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/Ij2HC/btqKgFshY3n/IQiPa4jhGvFzMgCkKkOoFk/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/Ij2HC/btqKgFshY3n/IQiPa4jhGvFzMgCkKkOoFk/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FIj2HC%2FbtqKgFshY3n%2FIQiPa4jhGvFzMgCkKkOoFk%2Fimg.png&quot; data-filename=&quot;원시타입-값의복사.png&quot; data-origin-width=&quot;960&quot; data-origin-height=&quot;720&quot; data-image-src=&quot;https://blog.kakaocdn.net/dn/Ij2HC/btqKgFshY3n/IQiPa4jhGvFzMgCkKkOoFk/img.png&quot; data-ke-mobilestyle=&quot;widthContent&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.inflearn.com/course/%ED%95%B5%EC%8B%AC%EA%B0%9C%EB%85%90-javascript-flow&quot;&gt;Javascript 핵심 개념 알아보기 - JS Flow&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;강의를 보시면 조금 더 자세하게 알 수 있습니다.&lt;/p&gt;</description>
      <category>JavaScript</category>
      <category>javascript</category>
      <category>primitive type</category>
      <category>인프런</category>
      <author>학학이</author>
      <guid isPermaLink="true">https://sanghaklee.tistory.com/72</guid>
      <comments>https://sanghaklee.tistory.com/72#entry72comment</comments>
      <pubDate>Wed, 7 Oct 2020 12:27:35 +0900</pubDate>
    </item>
    <item>
      <title>2020 LIFEPLUS JTBC 마라톤 개인정보수정 방법</title>
      <link>https://sanghaklee.tistory.com/71</link>
      <description>&lt;h2 data-ke-size=&quot;size26&quot;&gt;요약&lt;/h2&gt;
&lt;ol style=&quot;list-style-type: decimal;&quot; data-ke-list-type=&quot;decimal&quot;&gt;
&lt;li&gt;개인정보수정 페이지 접속&lt;/li&gt;
&lt;li&gt;키보드 &lt;span style=&quot;color: #ee2323;&quot;&gt;&lt;b&gt;F12&lt;/b&gt;&lt;/span&gt; 입력 (개발자 도구 접속)&lt;/li&gt;
&lt;li&gt;Console 창에 다음 코드 입력&amp;nbsp;
&lt;ol style=&quot;list-style-type: decimal;&quot;&gt;
&lt;li&gt;&lt;b&gt;function formcheck() { document.form1.submit(); }&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;엔터&lt;/b&gt; 입력 &lt;span style=&quot;color: #ee2323;&quot;&gt;&lt;b&gt;undefined 출력&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;개인정보수정 버튼 클릭&lt;/li&gt;
&lt;li&gt;&lt;b&gt;수정 완료! &lt;/b&gt;(잠깐 이상한 오류 페이지 뜨지만 상관없습니다.)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;b&gt;크롬 브라우저 사용. 다른 브라우저에서 잘 안되면 크롬 이용해주세요.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2 data-ke-size=&quot;size26&quot;&gt;상세 설명&lt;/h2&gt;
&lt;h3 data-ke-size=&quot;size23&quot;&gt;1) F12 입력 - 개발자 모드&amp;nbsp;&lt;/h3&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignRight&quot; data-filename=&quot;01-F12.png&quot; data-origin-width=&quot;1080&quot; data-origin-height=&quot;1920&quot; data-ke-mobilestyle=&quot;widthContent&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/ZChaD/btqKhknue5R/k6LQkP3pFa62vaiH0kw2B0/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/ZChaD/btqKhknue5R/k6LQkP3pFa62vaiH0kw2B0/img.png&quot; data-alt=&quot;Uncaught TypeError: Cannot read property &amp;amp;#39;value&amp;amp;#39; of undefined - 클라이언트 스크립트 오류&amp;amp;amp;nbsp;&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/ZChaD/btqKhknue5R/k6LQkP3pFa62vaiH0kw2B0/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FZChaD%2FbtqKhknue5R%2Fk6LQkP3pFa62vaiH0kw2B0%2Fimg.png&quot; data-filename=&quot;01-F12.png&quot; data-origin-width=&quot;1080&quot; data-origin-height=&quot;1920&quot; data-ke-mobilestyle=&quot;widthContent&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;figcaption&gt;Uncaught TypeError: Cannot read property 'value' of undefined - 클라이언트 스크립트 오류&amp;nbsp;&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3 data-ke-size=&quot;size23&quot;&gt;2) 스크립트 수정&lt;/h3&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-filename=&quot;02-JS수정.png&quot; data-origin-width=&quot;1080&quot; data-origin-height=&quot;1920&quot; data-ke-mobilestyle=&quot;widthContent&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/dBcOiA/btqKlUg6kQJ/gQgI2QGzaWS7TypQvgiXPK/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/dBcOiA/btqKlUg6kQJ/gQgI2QGzaWS7TypQvgiXPK/img.png&quot; data-alt=&quot;Console 창에 스크립트를 입력하세요.&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/dBcOiA/btqKlUg6kQJ/gQgI2QGzaWS7TypQvgiXPK/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FdBcOiA%2FbtqKlUg6kQJ%2FgQgI2QGzaWS7TypQvgiXPK%2Fimg.png&quot; data-filename=&quot;02-JS수정.png&quot; data-origin-width=&quot;1080&quot; data-origin-height=&quot;1920&quot; data-ke-mobilestyle=&quot;widthContent&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;figcaption&gt;Console 창에 스크립트를 입력하세요.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;pre id=&quot;code_1601983104010&quot; class=&quot;javascript&quot; data-ke-language=&quot;javascript&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;function formcheck() { document.form1.submit(); }&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3 data-ke-size=&quot;size23&quot;&gt;3) 개인정보수정 완료&lt;/h3&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock widthContent&quot; data-filename=&quot;03-수정알림.png&quot; data-origin-width=&quot;403&quot; data-origin-height=&quot;143&quot; data-ke-mobilestyle=&quot;widthContent&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/t5sUW/btqKnp1Y4P3/kiK165dIfHcqyp8K3hYhtK/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/t5sUW/btqKnp1Y4P3/kiK165dIfHcqyp8K3hYhtK/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/t5sUW/btqKnp1Y4P3/kiK165dIfHcqyp8K3hYhtK/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Ft5sUW%2FbtqKnp1Y4P3%2FkiK165dIfHcqyp8K3hYhtK%2Fimg.png&quot; data-filename=&quot;03-수정알림.png&quot; data-origin-width=&quot;403&quot; data-origin-height=&quot;143&quot; data-ke-mobilestyle=&quot;widthContent&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size18&quot;&gt;&lt;b&gt;절대적인 방법은 아닙니다. 상황에 따라 안될 수 있습니다. 제 상황에선 가능했던 방법이라 공유합니다.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2 data-ke-size=&quot;size26&quot;&gt;번외 - To.개발자님&lt;/h2&gt;
&lt;p&gt;pw2는 SNS 로그인에서 체크할 필요 없어 보입니다. 만약 필요하다면 상황에 맞춰 아래 링크의 방법이나 다른 방법으로 가져오면, Uncaught TypeError: Cannot read property 'value' of undefined 오류 방지할 수 있을 거 같습니다.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://api.jquery.com/attribute-contains-selector/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Attribute Contains Selector [name*=&amp;rdquo;value&amp;rdquo;]&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.javascripttutorial.net/javascript-dom/javascript-getelementsbyname/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;getElementsByName&lt;/a&gt;&lt;/p&gt;
&lt;pre id=&quot;code_1601983222058&quot; class=&quot;javascript&quot; data-ke-language=&quot;javascript&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;if (cf.pw2.value &amp;amp;&amp;amp; !chkPwd(cf.pw2.value)) return false;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <category>jtbc</category>
      <category>LifePlus</category>
      <category>개인정보수정</category>
      <category>마라톤</category>
      <author>학학이</author>
      <guid isPermaLink="true">https://sanghaklee.tistory.com/71</guid>
      <comments>https://sanghaklee.tistory.com/71#entry71comment</comments>
      <pubDate>Tue, 6 Oct 2020 20:36:37 +0900</pubDate>
    </item>
    <item>
      <title>RESTful API 설계 가이드 질문 1</title>
      <link>https://sanghaklee.tistory.com/70</link>
      <description>&lt;p&gt;&lt;a href=&quot;https://sanghaklee.tistory.com/57&quot;&gt;RESTful API 설계 가이드&lt;/a&gt;에 &lt;a href=&quot;https://sanghaklee.tistory.com/57#comment-4963885947&quot;&gt;질문 댓글&lt;/a&gt;이 달렸는데, 간단하게 답변하기보단 좀 자세히 답변해주고 싶어 글로 작성했습니다.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;예제에 good, bad 가 있는데 bad 는 사용하지 말라는 건지 아니면 사용해도 되는데 안 좋은 예라고 말하는 건지 알 수가 없네요.&lt;/li&gt;
&lt;li&gt;설계 가이드라고 나와 있는데 아직도 Rest api 가 완성된 형식이 없는 건지 아님 별도의 문법이 있어 각자의 서버에서 나름대로 사용자 정의가 가능한지요.&lt;/li&gt;
&lt;li&gt;서버는 웹서버에서 바로 구축이 가능한지 아니면 따로 서버를 구축해야 되는지 구축하려면 어떻게 구성하는지 ㅠㅠ&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;아래 모든 답변은 필자의 개인적인 생각입니다. 잘못된 부분이 있으면 언제든 댓글로 지적해주세요.&lt;/p&gt;
&lt;h2&gt;1. 예제에 good, bad 가 있는데 bad 는 사용하지 말라는 건지 아니면 사용해도 되는데 안 좋은 예라고 말하는 건지 알 수가 없네요.&lt;/h2&gt;
&lt;p&gt;TLDR; &lt;strong&gt;사용하지 말라는 뜻입니다.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;또한, 이미 저렇게 설계된 API가 있다면 최선을 다해 변경하라는 뜻입니다.&lt;/p&gt;
&lt;p&gt;다만, &lt;code&gt;9. Versioning&lt;/code&gt;의 내용들은 필자의 주관이 많이 반영된 규칙이기 때문에 다르게 생각할 수 있습니다.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;2. URL Rules&lt;/code&gt;, &lt;code&gt;5. Use HTTP status&lt;/code&gt; 내용들은 &lt;strong&gt;Good&lt;/strong&gt; 예제를 따라주세요.&lt;/p&gt;
&lt;h2&gt;2. 설계 가이드라고 나와 있는데 아직도 Rest api 가 완성된 형식이 없는 건지 아님 별도의 문법이 있어 각자의 서버에서 나름대로 사용자 정의가 가능한지요.&lt;/h2&gt;
&lt;p&gt;TLDR: &lt;strong&gt;REST는 표준을 정하고 관리하지 않습니다. REST의 개념과 원리는 정해져 있지만, 이것들 통해 구현할 때 구체적인 공식 가이드는 없습니다. 별도의 문법은 없고 각자 API 환경에 맞게 정의한 가이드를 따르면 됩니다.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;따라서, 어떤 API가 &lt;strong&gt;REST 하다&lt;/strong&gt;고 딱 정해주진 못합니다. 코드가 잘못되면 알려주는 컴파일러처럼 REST에 문법이 있어 이것을 체크할 수 있는 것이 아닙니다.&lt;/p&gt;
&lt;p&gt;그래서 작성한 글이 &lt;a href=&quot;https://sanghaklee.tistory.com/57&quot;&gt;RESTful API 설계 가이드&lt;/a&gt;입니다. 추상적인 REST에 대한 개념을 예로 들면서 &lt;code&gt;이렇게 하라&lt;/code&gt;고 작성한 지침입니다.&lt;/p&gt;
&lt;p&gt;제목을 보면 REST API 설계 가이드가 아니고 &lt;strong&gt;RESTful API 설계 가이드&lt;/strong&gt;입니다.&lt;br&gt;RESTful이란 REST 원리를 따르는 시스템을 지칭하는 용어입니다.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;RESTful 한 API를 설계하고 싶다면, 아래 링크들을 참고해서 설계하면 됩니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://restfulapi.net/&quot;&gt;https://restfulapi.net/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://sanghaklee.tistory.com/57&quot;&gt;RESTful API 설계 가이드&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://sanghaklee.tistory.com/61&quot;&gt;REST API 관점에서 바라보는 HTTP 상태 코드(HTTP status code)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;추가적으로 API에 대한 이야기를 좀 하겠습니다. 아주 오래전(필자도 경험해보지 못한) 웹 개발은 단순했습니다.&lt;br&gt;클라이언트-서버 구조로 보통 &lt;strong&gt;클라이언트는 브라우저&lt;/strong&gt;, &lt;strong&gt;서버는 웹 애플리케이션 서버(JSP, PHP)&lt;/strong&gt;로 HTTP를 통해 정보를 주고받았습니다.&lt;/p&gt;
&lt;p&gt;그렇기 때문에 HTTP 말고 보편적이고 일관적인 규약은 필요 없었습니다. (클라이언트-서버 모두 하나의 조직에서 개발/사용하기 때문에)&lt;/p&gt;
&lt;p&gt;그러나, 브라우저 위주의 클라이언트 환경에서 벗어나 모바일, IoT 등 매우 다양한 클라이언트들이 생겨났습니다.&lt;br&gt;이러한 클라이언트들이 생겨날 때마다 그 인터페이스에 맞는 서버 환경을 구축하기란 매우 어렵습니다.&lt;/p&gt;
&lt;p&gt;그래서 생겨난 것이 &lt;a href=&quot;https://ko.wikipedia.org/wiki/API&quot;&gt;API&lt;/a&gt;입니다.&lt;br&gt;어떤 클라이언트들이든 상관없이 HTTP를 사용할 수 있다면 서버의 자원을 제어할 수 있는 인터페이스를 만든 겁니다.&lt;/p&gt;
&lt;p&gt;하지만, &lt;a href=&quot;https://ko.wikipedia.org/wiki/HTTP&quot;&gt;HTTP&lt;/a&gt;는 클라이언트/서버 간 정보를 주고받는 방법에 대한 비교적 간단한 프로토콜입니다.&lt;br&gt;통신 자체는 HTTP를 이용하면 되지만, API 설계(design)에 대한 내용은 없습니다. HTTP가 만들어질 당시엔 API에 대한 고려가 필요하지 않았기 때문입니다.&lt;/p&gt;
&lt;p&gt;네트워크(HTTP를 사용하는 API 환경) 환경을 보편적이고 일관적으로 만들기 위해 만들어진 &lt;strong&gt;네트워크 아키텍처 원리&lt;/strong&gt;가 REST입니다.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;HTTP, REST처럼 계속 규약을 만들고 지키는 것은 생존과 관계있습니다.&lt;br&gt;관리되지 않는 코드와 시스템은 &lt;a href=&quot;https://ko.wikipedia.org/wiki/%EB%A0%88%EA%B1%B0%EC%8B%9C_%EC%8B%9C%EC%8A%A4%ED%85%9C&quot;&gt;레거시 시스템&lt;/a&gt;이 될 가능성이 높고 이 시스템은 언젠가 없어지게 됩니다.&lt;/p&gt;
&lt;p&gt;예를 들어, &lt;a href=&quot;https://dzone.com/articles/five-clues-your-api-isnt&quot;&gt;Five Clues That Your API isn&amp;#39;t RESTful&lt;/a&gt;로 익숙한 &lt;code&gt;All requests are POSTs&lt;/code&gt;처럼 모든 요청을 POST로 처리하게 만들었다고 가정합니다.&lt;br&gt;혼자 이렇게 개발하고 사용한다면 문제 될 게 없습니다. 하지만, 이 API의 기능 추가를 다른 사람이 진행하거나 API가 공개되어 불특정 다수가 사용하게 된다면 사용하기 불편한 API가 될 것이고 점차 사용되지 않는 API가 될 것입니다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;사용되지 않는 코드, 시스템, 서비스는 사라집니다.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;3. 서버는 웹서버에서 바로 구축이 가능한지 아니면 따로 서버를 구축해야 되는지 구축하려면 어떻게 구성하는지 ㅠㅠ&lt;/h2&gt;
&lt;p&gt;TLDR; &lt;strong&gt;질문의 요를 정확히 파악하지 못했습니다.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;아래 두 상황을 비교하는 거 같은데 일단 제가 이해한 내용으로 설명하겠습니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;서버는 웹서버에서 바로 구축이 가능한지&lt;/li&gt;
&lt;li&gt;따로 서버를 구축해야 되는지&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;질문자님의 상황을 예상하면, 리눅스 서버(AWS EC2)에 웹 서버인 NGINX를 설치하고 PHP로 웹 프로젝트를 구축했습니다.&lt;br&gt;그런데, REST API가 필요하여 Express.js로 구축하기로 결정했습니다.&lt;br&gt;이때 Express.js가 설치되는 서버를 &lt;strong&gt;웹서버가 설치된 EC2에 같이 둘 건지&lt;/strong&gt; 아니면 &lt;strong&gt;EC2를 하나 더 만들어서 API 서버로 사용할지&lt;/strong&gt;를 물어보는 거 같습니다.&lt;/p&gt;
&lt;p&gt;두 가지 모두 가능하지만, 일단 하나의 EC2에서 웹 서비스와 API 서버를 같이 운영해보고 나중에 다른 리눅스 서버에서 운영해보는 것을 추천합니다.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn.journaldev.com/wp-content/uploads/2019/03/nginx-reverse-proxy.png&quot; alt=&quot;Reverse proxy&quot;&gt;&lt;/p&gt;
&lt;p&gt;출처: &lt;a href=&quot;https://www.journaldev.com/27234/nginx-reverse-proxy-node-angular&quot;&gt;https://www.journaldev.com/27234/nginx-reverse-proxy-node-angular&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://sanghaklee.tistory.com/11&quot;&gt;[NGINX] NGINX를 nodejs express의 reverse proxy로 사용하기&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;서버: 리눅스, 윈도우만 설치된 컴퓨터. &lt;code&gt;AWS EC2&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;웹 서버: Apache, NGINX.&lt;/li&gt;
&lt;li&gt;웹 애플리케이션 프레임워크: &lt;a href=&quot;https://ko.wikipedia.org/wiki/%EC%8A%A4%ED%94%84%EB%A7%81_%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC&quot;&gt;Java Spring&lt;/a&gt;, &lt;a href=&quot;https://ko.wikipedia.org/wiki/%EC%9E%A5%EA%B3%A0_(%EC%9B%B9_%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC)&quot;&gt;Python django&lt;/a&gt;, &lt;a href=&quot;https://ko.wikipedia.org/wiki/Express.js&quot;&gt;Node.js Express.js&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description>
      <category>Web</category>
      <category>API</category>
      <category>REST</category>
      <category>RESTful</category>
      <author>학학이</author>
      <guid isPermaLink="true">https://sanghaklee.tistory.com/70</guid>
      <comments>https://sanghaklee.tistory.com/70#entry70comment</comments>
      <pubDate>Tue, 23 Jun 2020 19:06:05 +0900</pubDate>
    </item>
    <item>
      <title>설치하다; Java 설치; Python 설치; Node.js 설치; C 설치?</title>
      <link>https://sanghaklee.tistory.com/69</link>
      <description>&lt;div id=&quot;toc&quot;&gt;&lt;/div&gt;
&lt;p&gt;Java 프로그래밍을 하기 위해 가장 처음 하는 일은 뭘까?&lt;/p&gt;
&lt;p&gt;보통 Java 설치 방법을 구글에 검색한다. Python, Go, Ruby, PHP라고 다를 게 없다.&lt;/p&gt;
&lt;p&gt; 이러한 과정에 대해 한 번도 이상하다 생각한 적이 없었는데, &lt;a href=&quot;https://python.bakyeono.net/chapter-1-1.html&quot;&gt;https://python.bakyeono.net/chapter-1-1.html&lt;/a&gt; 에서 다음과 같은 문구를 읽고 의문이 생겨 깊게 생각해봤다.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;파이썬 인터프리터 프로그램을 줄여서 ‘파이썬’이라고 부를 때가 많다. ‘파이썬’이라고 하면 언어를 뜻할 때도 있고, 인터프리터 프로그램을 뜻할 때도 있다.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Java 설치&lt;/strong&gt;라는 말에 대해 자세히 알아본다.&lt;/p&gt;
&lt;h2&gt;Java 설치&lt;/h2&gt;
&lt;p&gt;구글에 다음과 같이 &lt;a href=&quot;https://www.google.com/search?q=Java%20%EC%84%A4%EC%B9%98&quot;&gt;Java 설치&lt;/a&gt;라고 검색하면 많은 내용이 나온다.&lt;/p&gt;
&lt;p&gt;Java는 프로그래밍 언어다.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;자바는 썬 마이크로시스템즈의 제임스 고슬링(James Gosling)과 다른 연구원들이 개발한 객체 지향적 프로그래밍 언어이다.&lt;br&gt;&lt;a href=&quot;https://ko.wikipedia.org/wiki/%EC%9E%90%EB%B0%94_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4)&quot;&gt;https://ko.wikipedia.org/wiki/자바_(프로그래밍_언어)&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Java 설치&lt;/strong&gt;를 풀어서 보면, 프로그래밍 언어를 설치한다는 뜻이 된다.&lt;/p&gt;
&lt;p&gt;하지만, 프로그래밍 언어를 설치한다는 것은 근본적으로 말이 안 된다.&lt;br&gt;프로그래밍 언어는 사람과 컴퓨터가 대화할 수 있는 &lt;strong&gt;언어&lt;/strong&gt;를 말한다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;프로그래밍 언어를 해석할 수 있는 해석기(컴파일러, 인터프리터)를 설치한다는 것이 더 말이 된다.&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;img src=&quot;https://user-images.githubusercontent.com/9030565/83703224-daafd000-a649-11ea-8a2e-181f054da9b7.png&quot; alt=&quot;설국열차&quot;&gt;&lt;br&gt;영화 설국열차를 보면 한국인 남궁민수는 외국인들과 대화하기 위해 &lt;strong&gt;언어 번역기&lt;/strong&gt;를 사용한다.&lt;br&gt;한국어로 말해도 영어로 번역되어 나오기 때문에 외국인들이 이해할 수 있다.&lt;br&gt;여기서 남궁민수는 &lt;strong&gt;영어&lt;/strong&gt;를 자신의 뇌 속에 설치하지 않는다. 또한 외국인들도 &lt;strong&gt;한국어&lt;/strong&gt;를 그들의 뇌 속에 설치하지 않는다.&lt;br&gt;&lt;strong&gt;각 언어를 해석해서 변환할 수 있는 번역 소프트웨어가 설치된 번역기를 사용한다.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Java의 경우 &lt;a href=&quot;%5Bhttps://namu.wiki/w/JDK%5D(https://namu.wiki/w/JDK)&quot;&gt;JDK&lt;/a&gt;를 설치한다는 표현이 더 옳다.&lt;/p&gt;
&lt;p&gt;Java 언어로 작성된 소스코드를 해석하고 실행할 수 있는 소프트웨어인 JDK(Java Development Kit)를 설치한다는 표현이 맞는 것이다.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;img src=&quot;https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQXHBIT4DdqeuqI1-NuJUaY1PdxRwWhQAy7_qfu5xYj6FNiF-1V&amp;usqp=CAU&quot; alt=&quot;JDK&quot;&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https://www.javacodemonk.com/what-is-difference-between-jdk-jre-and-jvm-6380989d&quot;&gt;https://www.javacodemonk.com/what-is-difference-between-jdk-jre-and-jvm-6380989d&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;Python 설치&lt;/h2&gt;
&lt;p&gt;Java와 비슷한 방법으로 Python 프로그래밍을 하기 위해서 우리는 &lt;a href=&quot;https://www.google.com/search?q=Python%20%EC%84%A4%EC%B9%98&quot;&gt;Python 설치&lt;/a&gt;를 검색한다.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Python is a programming language that lets you work quicklyand integrate systems more effectively.&lt;br&gt;&lt;a href=&quot;https://www.python.org&quot;&gt;https://www.python.org&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Python도 Java와 비슷하다. Python 언어를 설치하는 것이 아니라 Python 언어로 작성된 프로그램을 실행시킬 수 있는 환경(소프트웨어, 해석기)을 설치하는 것이다.&lt;/p&gt;
&lt;p&gt;Python은 보통 인터프리터 기반이라고 알고 있지만, 인터프리터와 컴파일러를 같이 사용한다. (&lt;a href=&quot;https://en.wikipedia.org/wiki/CPython&quot;&gt;CPython&lt;/a&gt;의 경우)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Python 소스코드&lt;/strong&gt; &lt;code&gt;-&amp;gt;(컴파일러)&lt;/code&gt; &lt;strong&gt;bytecode&lt;/strong&gt; &lt;code&gt;-&amp;gt;(인터프리터)&lt;/code&gt; &lt;strong&gt;기계어&lt;/strong&gt; &lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;img src=&quot;https://www.c-sharpcorner.com/article/why-learn-python-an-introduction-to-python/Images/last2.png&quot; alt=&quot;Python Interpreter&quot;&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https://www.c-sharpcorner.com/article/why-learn-python-an-introduction-to-python/&quot;&gt;https://www.c-sharpcorner.com/article/why-learn-python-an-introduction-to-python/&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Java 설명과 동일하게 Python 언어를 해석할 수 있는 Python 해석기(그림에서 Python Interpreter)를 설치한다는 표현이 더 맞다.&lt;/p&gt;
&lt;h2&gt;Node.js 설치&lt;/h2&gt;
&lt;p&gt;Node.js의 경우 Java, Python과 다르게 &lt;strong&gt;Node.js 설치&lt;/strong&gt;라는 말이 이상하지 않다.&lt;/p&gt;
&lt;p&gt;Node.js는 프로그래밍 언어가 아니고 JavaScript 런타임이다.&lt;br&gt;가끔 Node.js를 처음 접하는 개발자들은 Node.js가 언어라고 잘못 알기도 한다.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Node.js® is a JavaScript runtime built on Chrome&amp;#39;s V8 JavaScript engine.&lt;br&gt;&lt;a href=&quot;https://nodejs.org/en&quot;&gt;https://nodejs.org/en&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Node.js는 JavaScript를 실행시킬 수 있는 런타임 즉, 소프트웨어고 이 소프트웨어에서 실행되는 프로그램 언어가 JavaScript인 것이다.&lt;/p&gt;
&lt;p&gt;그래서 그 누구도 JavaScirpt를 설치한다고 말하지 않는다.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;img src=&quot;https://marcradziwill.com/static/5c9eaa8964c688cea69db26a1da0f11e/eea4a/V8-pipeline.jpg&quot; alt=&quot;JavaScript engine v8&quot;&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https://marcradziwill.com/blog/mastering-javascript-high-performance&quot;&gt;https://marcradziwill.com/blog/mastering-javascript-high-performance&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;C 설치&lt;/h2&gt;
&lt;p&gt;C의 경우도 조금 다르다. 대부분의 개발자는 &lt;strong&gt;C 설치&lt;/strong&gt;를 검색하지 않는다.&lt;br&gt;&lt;a href=&quot;https://www.google.com/search?q=C%20%EC%84%A4%EC%B9%98&quot;&gt;C 설치&lt;/a&gt;를 보더라도 대부분 Visual Studio를 설치하는 내용들이 검색된다.&lt;/p&gt;
&lt;p&gt;학부 수업에서도 C 언어를 코딩하기 전에 Visual Studio를 먼저 설치했던 기억이 난다.&lt;/p&gt;
&lt;p&gt;C 언어는 순수한 컴파일 언어라고 할 수 있다. 고급어인 C 언어는 컴파일러를 통해 기계어로 변환되고 컴퓨터는 이를 해석한다.&lt;/p&gt;
&lt;p&gt;Visual Studio가 컴파일러를 포함한 소프트웨어이기 때문에 C 언어로 작성된 소스코드를 컴퓨터가 해석할 수 있는 기계어로 변환하기 위해 Visual Studio를 설치하는 것이다. (리눅스에선 &lt;a href=&quot;%5Bhttps://namu.wiki/w/GCC%5D(https://namu.wiki/w/GCC)&quot;&gt;gcc&lt;/a&gt;)&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;img src=&quot;https://miro.medium.com/max/1036/1*wHKe6W4opLmk6pb7sxZz6w.png&quot; alt=&quot;c compile&quot;&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https://medium.com/@laura.derohan/compiling-c-files-with-gcc-step-by-step-8e78318052&quot;&gt;https://medium.com/@laura.derohan/compiling-c-files-with-gcc-step-by-step-8e78318052&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;별거 아니라고 생각할 수 있는 주제일 수 있다. 그리고  한 번도 생각해보지도 않은 그리고 않을 주제일 수도 있다.&lt;br&gt;또한 누군가에겐 생각해볼 가치도 없는 주제일 수 있다.&lt;/p&gt;
&lt;p&gt;하지만, 필자의 경우 평소 당연하게 생각했던 &lt;strong&gt;Java 설치&lt;/strong&gt;라는 말 자체에 의문이 생겨 깊게 알아보았다.&lt;br&gt;이 과정에서 사용했었던 프로그래밍 언어들의 동작 원리에 대해서 다시 자세히 알아본 기회가 됐다.&lt;/p&gt;
&lt;p&gt;누군가가 &lt;strong&gt;Java 설치&lt;/strong&gt;라고 말한다 해서 &lt;code&gt;&amp;quot;그건 잘못된 말이야! 생각해봐 어떻게 프로그래밍 언어를 설치해! 안 그래?&amp;quot;&lt;/code&gt;라고 하나하나 꼬투리 잡진 않을 것이다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;알고 하지 않는 것과 모르기 때문에 못하는 것은 다르다.&lt;/strong&gt;&lt;/p&gt;</description>
      <category>Java</category>
      <category>c</category>
      <category>install</category>
      <category>java</category>
      <category>node.js</category>
      <category>python</category>
      <category>설치</category>
      <author>학학이</author>
      <guid isPermaLink="true">https://sanghaklee.tistory.com/69</guid>
      <comments>https://sanghaklee.tistory.com/69#entry69comment</comments>
      <pubDate>Thu, 4 Jun 2020 18:18:23 +0900</pubDate>
    </item>
    <item>
      <title>[Java] JaCoCo with PowerMock code coverage problem</title>
      <link>https://sanghaklee.tistory.com/68</link>
      <description>&lt;div id=&quot;wmd-preview-section-95&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;blockquote style=&quot;box-sizing: border-box; padding: 15px 20px; margin: 0px 0px 1.1em; border-left-width: 10px; border-left-color: rgba(102, 128, 153, 0.075); background-color: rgba(102, 128, 153, 0.047); border-top-right-radius: 5px; border-bottom-right-radius: 5px; outline: none !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 1.1em; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;JaCoCo PowerMock no coverage report&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;JaCoCo + PowerMock doesn’t work&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;[ant:jacocoReport] Classes in bundle ” do no match with execution data. For report generation the same class files must be used as at runtime.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;[ant:jacocoReport] Execution data for class does not match.&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;TOC&lt;/strong&gt;&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; outline: none !important; margin-top: 0px; margin-bottom: 1.1em; padding-left: 2em; line-height: 1.6;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;TLTR; Solution&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;coverage report&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;Code coverage with JaCoCo&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; outline: none !important; margin-top: 0px; margin-bottom: 0.55em; padding-left: 2em; line-height: 1.6;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;How to JaCoCo calculate coverage&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;Problem situation&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;Problem example&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;JaCoCo Offline Instrumentation&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;build.gradle&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;Conclusion&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;References&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-96&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;h3 id=&quot;tltr-solution&quot; style=&quot;box-sizing: border-box; font-family: inherit; line-height: 1.6; color: inherit; margin: 1.2em 0px 0.6em; font-size: 27.2px; outline: none !important;&quot;&gt;TLTR; Solution&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;JaCoCo의&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://github.com/powermock/powermock/wiki/Code-coverage-with-JaCoCo#offline-instrumentation&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;Offline Instrumentation&lt;/a&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;방식을 사용하면 제대로 된 코드 커버리지를 측정할 수 있다. (예제 프로젝트&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://github.com/SangHakLee/jacoco-offline-gradle&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://github.com/SangHakLee/jacoco-offline-gradle&lt;/a&gt;)&lt;/p&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-97&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;h2 id=&quot;coverage-report&quot; style=&quot;box-sizing: border-box; font-family: inherit; line-height: 1.1; color: inherit; margin: 1.2em 0px 0.6em; font-size: 34.4px; outline: none !important;&quot;&gt;coverage report&lt;/h2&gt;&lt;blockquote style=&quot;box-sizing: border-box; padding: 15px 20px; margin: 0px 0px 1.1em; border-left-width: 10px; border-left-color: rgba(102, 128, 153, 0.075); background-color: rgba(102, 128, 153, 0.047); border-top-right-radius: 5px; border-bottom-right-radius: 5px; outline: none !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 1.1em; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;&lt;a href=&quot;https://www.jacoco.org/jacoco/trunk/doc&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;JaCoCo&lt;/a&gt;와&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://github.com/powermock/powermock&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;PowerMock&lt;/a&gt;을 함께 쓰면 커버리지를 제대로 측정할 수 없다.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;테스트 코드를 수행하지 않은 것이 아니라, 테스트 코드는 수행하는데 테스트 코드가 얼마나 수행된지 나타내는 커버리지를 제대로 측정할 수 없다.&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;&lt;a href=&quot;https://github.com/jacoco/jacoco/issues/676&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;이것은 잘 알려진 문제점이다.&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-98&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;h3 id=&quot;code-coverage-with-jacoco&quot; style=&quot;box-sizing: border-box; font-family: inherit; line-height: 1.6; color: inherit; margin: 1.2em 0px 0.6em; font-size: 27.2px; outline: none !important;&quot;&gt;Code coverage with JaCoCo&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;PowerMock에서는 이미 이 이슈를 알고 있고 원인과 해결책을 제공한다.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;&lt;a href=&quot;https://github.com/powermock/powermock/wiki/Code-coverage-with-JaCoCo&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://github.com/powermock/powermock/wiki/Code-coverage-with-JaCoCo&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-99&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;h4 id=&quot;how-to-jacoco-calculate-coverage&quot; style=&quot;box-sizing: border-box; font-family: inherit; line-height: 1.6; color: inherit; margin: 1.2em 0px 0.6em; font-size: 20px; outline: none !important;&quot;&gt;How to JaCoCo calculate coverage&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;JaCoCo가 코드 커버리지를 측정할 수 있는 이유는 런타임 환경에서 코드 커버리지를 측정할 수 있게 바이트 코드(.class)를 조작하였기 때문이다.&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; padding: 15px 20px; margin: 0px 0px 1.1em; border-left-width: 10px; border-left-color: rgba(102, 128, 153, 0.075); background-color: rgba(102, 128, 153, 0.047); border-top-right-radius: 5px; border-bottom-right-radius: 5px; outline: none !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;JVM이 동적으로 바이트 코드를 읽는 과정에서 바이트 코드를 조작해서 커러비지를 측정할 수 있는 카운터 코드들을 동적으로 추가한다.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;&lt;a href=&quot;https://iamsang.com/blog/2012/08/19/introduction-to-java-bytecode&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;자바 바이트코드&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;이러한 바이트 코드 조작에&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.jacoco.org/jacoco/trunk/doc/agent.html&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;Java Agent&lt;/a&gt;를 이용한다.&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; padding: 15px 20px; margin: 0px 0px 1.1em; border-left-width: 10px; border-left-color: rgba(102, 128, 153, 0.075); background-color: rgba(102, 128, 153, 0.047); border-top-right-radius: 5px; border-bottom-right-radius: 5px; outline: none !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 1.1em; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;JaCoCo는 기본적으로 Java Agent를 이용해서&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.jacoco.org/jacoco/trunk/doc/implementation.html&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;On-the-fly&lt;/a&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;방식으로 바이트 코드를 조작한다.&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 1.1em; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;On-the-fly&lt;/code&gt;는 즉석에서라는 뜻이다.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;On-the-fly&lt;/code&gt;는 코드 커버리지 측정 시 런타임 환경(JRE)의&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://ko.wikipedia.org/wiki/%EC%9E%90%EB%B0%94_%ED%81%B4%EB%9E%98%EC%8A%A4%EB%A1%9C%EB%8D%94&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;클래스 로더&lt;/a&gt;가&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;.class&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;바이트 코드를 읽고 런타임에 실행하는 순간에 코드를 조작한다. (&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;런타임&lt;/strong&gt;의 클래스 로더가 바이트 코드를 로드하는 시점)&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 1.1em; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;따라서, 클래스 파일을 보면 바이트 코드 자체는 조작된 것이 없다. (정적인 바이트 코드는 그대로 두고 로드하면서 메모리에서 조작)&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 1.1em; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;클래스 파일 자체를 조작하지 않고&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;클래스 로더가 원본 바이트 코드를 메모리에 로드할 때 조작&lt;/strong&gt;하여 JVM 실행 엔진이 인터프리터 방식으로 해당 라인을 수행할 때&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;조작된 바이트 코드를 이용해 커버리지를 측정한다.&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;이러한 방식으로 동작하기 때문에&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;On-the-fly&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;즉석에서&lt;/strong&gt;라는 이름이 붙여진 거 같다.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-100&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;h4 id=&quot;problem-situation&quot; style=&quot;box-sizing: border-box; font-family: inherit; line-height: 1.6; color: inherit; margin: 1.2em 0px 0.6em; font-size: 20px; outline: none !important;&quot;&gt;Problem situation&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;하지만&lt;/strong&gt;,&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;On-the-fly&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;방식과 PowerMock을 사용하면&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.javassist.org/&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;Javaasist&lt;/a&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;때문에 문제가 발생한다.&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; padding: 15px 20px; margin: 0px 0px 1.1em; border-left-width: 10px; border-left-color: rgba(102, 128, 153, 0.075); background-color: rgba(102, 128, 153, 0.047); border-top-right-radius: 5px; border-bottom-right-radius: 5px; outline: none !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;The main issue is that Javassist reads classes from disk and all JaCoCo changes are disappeared. As result zero code coverage for classes witch are loaded by PowerMock class loader.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;&lt;a href=&quot;https://github.com/powermock/powermock/wiki/Code-coverage-with-JaCoCo#on-the-fly-instrumentation&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://github.com/powermock/powermock/wiki/Code-coverage-with-JaCoCo#on-the-fly-instrumentation&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;설명했듯, JaCoCo의&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;On-the-fly&lt;/code&gt;는 디스크에 저장된 클래스 파일을 그대로 사용하지 않고 런타임에서 조작하여 커버리지를 측정한다.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;그러나, PowerMock의&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;Javaasist&lt;/code&gt;는 미리 클래스 파일을 조작하고 디스크에 저장한 뒤 이 클래스 파일을 런타임에서 사용한다.&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;즉, PowerMock이 읽어 온 클래스 파일(바이트 코드)과 JaCoCo가 읽은 클래스 파일(바이트 코드)이 다르게 되는 것이다.&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; outline: none !important; margin-top: 0px; margin-bottom: 1.1em; padding-left: 2em; line-height: 1.6;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;JaCoCo&lt;/strong&gt;: JVM 메모리에 올라간 바이트 코드 이용&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;PowerMock&lt;/strong&gt;: Javaassist가 디스크(로컬)에 저장된 클래스 파일을 이용&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-101&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;h5 id=&quot;problem-example&quot; style=&quot;box-sizing: border-box; font-family: inherit; line-height: 1.6; color: inherit; margin: 1.2em 0px 0.6em; font-size: 16px; outline: none !important;&quot;&gt;Problem example&lt;/h5&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-102&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;pre class=&quot;prettyprint hljs-dark&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; white-space: pre-wrap; padding: 0px; margin-top: 0px; margin-bottom: 1.1em; line-height: 1.6; word-break: break-all; overflow-wrap: break-word; color: rgb(51, 51, 51); background: rgb(246, 246, 246); border: 0px; border-radius: 5px; outline: none !important;&quot;&gt;&lt;code class=&quot;language-bash hljs&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: inherit; padding: 0.5em; color: rgb(248, 248, 242); background: rgb(35, 36, 31); border-radius: 0px; display: block; overflow-x: auto; outline: none !important;&quot;&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;$ ./gradlew &lt;span class=&quot;hljs-built_in&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;test&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;...
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&amp;gt; Task :jacocoTestReport
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;[ant:jacocoReport] Classes &lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;in&lt;/span&gt; bundle &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'api'&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;do&lt;/span&gt; no match with execution data. For report generation the same class files must be used as at runtime.
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;[ant:jacocoReport] Execution data &lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;for&lt;/span&gt; class com/example/api/BaseApi does not match.
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;[ant:jacocoReport] Execution data &lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;for&lt;/span&gt; class com/example/api/user/UserApi does not match.
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;...
&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;ul style=&quot;box-sizing: border-box; outline: none !important; margin-top: 0px; margin-bottom: 1.1em; padding-left: 2em; line-height: 1.6;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;에러를 읽어 보면,&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;리포트를 만들기 위해선 런타임에서 같은 클래스 파일을 사용해야한다고 한다.&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;이러한 문제는 예전부터 알려졌으며, 이러한 문제를 해결하기 위해 PowerMock 팀에선&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://github.com/powermock/powermock/issues/727&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;Javassist -&amp;gt; ByteBuddy&lt;/a&gt;로 변경을 계획 중이이라고 한다.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;하지만, 이 변경은 아직도 이뤄지지 않았다.(2020)&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-103&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;h4 id=&quot;jacoco-offline-instrumentation&quot; style=&quot;box-sizing: border-box; font-family: inherit; line-height: 1.6; color: inherit; margin: 1.2em 0px 0.6em; font-size: 20px; outline: none !important;&quot;&gt;JaCoCo Offline Instrumentation&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;따라서 PowerMock에선&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;Offline&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;방식으로 이 문제를 해결할 수 있다고 안내한다.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://github.com/powermock/powermock/wiki/Code-coverage-with-JaCoCo#offline-instrumentation&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://github.com/powermock/powermock/wiki/Code-coverage-with-JaCoCo#offline-instrumentation&lt;/a&gt;&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; padding: 15px 20px; margin: 0px 0px 1.1em; border-left-width: 10px; border-left-color: rgba(102, 128, 153, 0.075); background-color: rgba(102, 128, 153, 0.047); border-top-right-radius: 5px; border-bottom-right-radius: 5px; outline: none !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 1.1em; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;Offline&lt;/code&gt;은&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;On-the-fly&lt;/code&gt;와 다르게 미리 클래스 파일 자체를 조작하여 디스크(로컬)에 저장 후 이것을 이용한다.&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 1.1em; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;따라서, 빌드된 클래스 파일들을 보면 코드에 이상한 내용들이 들어간 것을 확인할 수 있다.&lt;/p&gt;&lt;pre class=&quot;prettyprint hljs-dark&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; white-space: pre-wrap; padding: 0px; margin-top: 0px; margin-bottom: 1.1em; line-height: 1.6; word-break: break-all; overflow-wrap: break-word; color: rgb(51, 51, 51); background: rgb(246, 246, 246); border: 0px; border-radius: 5px; outline: none !important;&quot;&gt;&lt;code class=&quot;language-java hljs&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: inherit; padding: 0.5em; color: rgb(248, 248, 242); background: rgb(35, 36, 31); border-radius: 0px; display: block; overflow-x: auto; outline: none !important;&quot;&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(117, 113, 94);&quot;&gt;// Api.class&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-class&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(102, 217, 239);&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(166, 226, 46); font-style: italic;&quot;&gt;Api&lt;/span&gt; &lt;/span&gt;{
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;      &lt;span class=&quot;hljs-function&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(102, 217, 239);&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(166, 226, 46);&quot;&gt;Api&lt;/span&gt;&lt;span class=&quot;hljs-params&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(248, 248, 242);&quot;&gt;()&lt;/span&gt; &lt;/span&gt;{
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;          &lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;boolean&lt;/span&gt;[] var1 = $jacocoInit();
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;          &lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;super&lt;/span&gt;();
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;          var1[&lt;span class=&quot;hljs-number&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(174, 129, 255);&quot;&gt;0&lt;/span&gt;] = &lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;true&lt;/span&gt;;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;      }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;}
&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 1.1em; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;위의 예시와 같이 미리 바이트 코드를 조작해서 이 클래스 파일을 런타임에서 사용한다. (Java Agent가 개입하여 바이트 코드 로딩 시 개입하지 않는다.)&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px; font-size: 1em; line-height: 1.6; outline: none !important;&quot;&gt;따라서, PowerMock과 JaCoCos는 디스크의 같은 클래스 파일을 사용하기 때문에 제대로 된 리포트를 받아볼 수 있다.&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;JaCoCo 사용 시 PowerMock을 사용하지 않는 대부분의 경우에선 기본 instrumentation인&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;On-the-fly&lt;/code&gt;를 그대로 사용하면 된다.&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;Offline&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;방식은 빌드 스크립트 수정해야 하기 때문에&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;On-the-fly&lt;/code&gt;를&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.eclemma.org/jacoco/trunk/doc/offline.html&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;사용할 수 없는 경우에만&lt;/a&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;사용하고 나머진&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;On-the-fly&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;방법을 그대로 사용하는 것을 추천한다.&lt;/p&gt;&lt;hr style=&quot;box-sizing: content-box; height: 0px; margin: 2em 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; border-image: initial; border-top-style: solid; border-top-color: rgba(102, 128, 153, 0.098); line-height: 1.6; outline: none !important;&quot;&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-104&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 1.1em; line-height: 1.6; outline: none !important; text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99068F405ED4DB0D2E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99068F405ED4DB0D2E&quot; width=&quot;820&quot; height=&quot;707&quot; filename=&quot;JaCoCo &amp; PowerMock.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; outline: none !important; margin-top: 0px; margin-bottom: 1.1em; padding-left: 2em; line-height: 1.6;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;기본적으로 컴파일 시 그림 좌상단의 바이트 코드와 같이 컴파일된 클래스 파일이 생성된다.&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;JaCoCo On-the-fly의 경우 이 클래스 파일을 조작하지 않고 그대로 로딩하면서 바이트 코드 조작이 필요하면 이 때 조작한다.&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;PowerMock, JaCoCo Offline의 경우 클래스 파일을 미리 조작하여 바이트 코드 자체가 변형된다.&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; outline: none !important; margin-top: 0px; margin-bottom: 0.55em; padding-left: 2em; line-height: 1.6;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;PowerMock의 경우 기존 메소드나 클래스를 대신할 바이트 코드가 들어갈 것이고&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;JaCoCo의 경우 코드 커버리지 측정을 위한 바이트 코드들이 들어간다.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;그림을 보면 JaCoCo On-the-fly와 PowerMock의 바이트 코드와 런타임 실행 데이터가 다르다.&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;그림을 보면 JaCoCo Offline과 PowerMock의 바이트 코드와 런타일 실행 데이터가 일치한다.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr style=&quot;box-sizing: content-box; height: 0px; margin: 2em 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; border-image: initial; border-top-style: solid; border-top-color: rgba(102, 128, 153, 0.098); line-height: 1.6; outline: none !important;&quot;&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-105&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;h4 id=&quot;buildgradle&quot; style=&quot;box-sizing: border-box; font-family: inherit; line-height: 1.6; color: inherit; margin: 1.2em 0px 0.6em; font-size: 20px; outline: none !important;&quot;&gt;build.gradle&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;Gradle에서&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;Offline&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;방식은 간단하게 옵션 변경 등으로 설정할 수 없고 빌드 스크립트를 수정해야 한다.&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;Maven의 경우 비교적 쉬운 방법으로&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;Offline Instrumentation&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;사용할 수 있다.&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; outline: none !important; margin-top: 0px; margin-bottom: 1.1em; padding-left: 2em; line-height: 1.6;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;https://github.com/powermock/powermock-examples-maven/tree/master/jacoco-offline&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://github.com/powermock/powermock-examples-maven/tree/master/jacoco-offline&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;https://www.eclemma.org/jacoco/trunk/doc/examples/build/pom-offline.xml&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://www.eclemma.org/jacoco/trunk/doc/examples/build/pom-offline.xml&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;하지만, Gradle의 경우 build 스크립트에 tasks 들을 추가시켜야 한다.&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;아래에 예시는 절대적이지 않으며, 각 프로젝트 환경에 따라서 task 내용 수정이 필요할 수 있다.&lt;/p&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-106&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;pre class=&quot;prettyprint hljs-dark&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; white-space: pre-wrap; padding: 0px; margin-top: 0px; margin-bottom: 1.1em; line-height: 1.6; word-break: break-all; overflow-wrap: break-word; color: rgb(51, 51, 51); background: rgb(246, 246, 246); border: 0px; border-radius: 5px; outline: none !important;&quot;&gt;&lt;code class=&quot;language-groovy hljs&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: inherit; padding: 0.5em; color: rgb(248, 248, 242); background: rgb(35, 36, 31); border-radius: 0px; display: block; overflow-x: auto; outline: none !important;&quot;&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(117, 113, 94);&quot;&gt;// build.gradle&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;wbr style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;plugins {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    id &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'java'&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    id &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'jacoco'&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;}
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;wbr style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;configurations {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    &lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(117, 113, 94);&quot;&gt;// for jacoco-powermock&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    jacocoAnt
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    jacocoRuntime
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;}
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;wbr style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;repositories {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    jcenter()
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;}
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;wbr style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;dependencies {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    testImplementation &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'junit:junit:4.12'&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;wbr style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    &lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(117, 113, 94);&quot;&gt;// for jacoco-powermock&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    jacocoAnt &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;group:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'org.jacoco'&lt;/span&gt;, &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;name:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'org.jacoco.ant'&lt;/span&gt;, &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;version:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'0.8.5'&lt;/span&gt;, &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;classifier:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'nodeps'&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    jacocoRuntime &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;group:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'org.jacoco'&lt;/span&gt;, &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;name:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'org.jacoco.agent'&lt;/span&gt;, &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;version:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'0.8.5'&lt;/span&gt;, &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;classifier:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'runtime'&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;}
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;wbr style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(117, 113, 94);&quot;&gt;// jacoco Offline Instrumentation https://github.com/powermock/powermock/wiki/Code-coverage-with-JaCoCo&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;task instrument(&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;dependsOn:&lt;/span&gt; [&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'classes'&lt;/span&gt;]) {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    ext.outputDir = buildDir.path + &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'/classes-instrumented'&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    doLast {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;        ant.taskdef(
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;span class=&quot;hljs-symbol&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;            name:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'instrument'&lt;/span&gt;,
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;span class=&quot;hljs-symbol&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;            classname:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'org.jacoco.ant.InstrumentTask'&lt;/span&gt;,
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;span class=&quot;hljs-symbol&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;            classpath:&lt;/span&gt; configurations.jacocoAnt.asPath
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;        )
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;        ant.instrument(&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;destdir:&lt;/span&gt; outputDir) {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;            sourceSets.main.output.classesDirs.each { fileset(&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;dir:&lt;/span&gt; it) }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;        }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;}
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;gradle.taskGraph.whenReady { graph -&amp;gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;  &lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;if&lt;/span&gt; (graph.hasTask(instrument)) {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    tasks.withType(Test) {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;      doFirst {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;        systemProperty &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'jacoco-agent.destfile'&lt;/span&gt;, buildDir.path + &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'/jacoco/tests.exec'&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;        classpath = files(instrument.outputDir) + classpath + configurations.jacocoRuntime
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;      }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;  }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;}
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;task report(&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;dependsOn:&lt;/span&gt; [&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'instrument'&lt;/span&gt;, &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'test'&lt;/span&gt;]) {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    doLast {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;        ant.taskdef(
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;span class=&quot;hljs-symbol&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;            name:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'report'&lt;/span&gt;,
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;span class=&quot;hljs-symbol&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;            classname:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'org.jacoco.ant.ReportTask'&lt;/span&gt;,
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;&lt;span class=&quot;hljs-symbol&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(249, 38, 114);&quot;&gt;            classpath:&lt;/span&gt; configurations.jacocoAnt.asPath
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;        )
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;        ant.report() {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;            executiondata {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;                ant.file(&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;file:&lt;/span&gt; buildDir.path + &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'/jacoco/tests.exec'&lt;/span&gt;)
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;            }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;            structure(&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;name:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'Example'&lt;/span&gt;) {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;                classfiles {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;                    sourceSets.main.output.classesDirs.each { fileset(&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;dir:&lt;/span&gt; it) }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;                }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;                sourcefiles {
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;                    fileset(&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;dir:&lt;/span&gt; &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'src/main/java'&lt;/span&gt;)
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;                }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;            }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;            html(&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;destdir:&lt;/span&gt; buildDir.path + &lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;'/reports/jacoco'&lt;/span&gt;)
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;        }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;    }
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;}
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;test.dependsOn instrument
&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;ul style=&quot;box-sizing: border-box; outline: none !important; margin-top: 0px; margin-bottom: 1.1em; padding-left: 2em; line-height: 1.6;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;task instrument&lt;/strong&gt;&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; outline: none !important; margin-top: 0px; margin-bottom: 0.55em; padding-left: 2em; line-height: 1.6;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;classes task&lt;/code&gt;(Assembles main classes) 에 의존되기 때문에&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;.java&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;-&amp;gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;.class&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;생성 (&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;/build/classes&lt;/code&gt;)&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;ant.instrument&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;task를 통해&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;/build/classes-instrumented&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;경로에 바이트 코드가 조작된 클래스 파일 생성&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;/build/classes&lt;/code&gt;,&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;/build/classes-instrumented&lt;/code&gt;를 보면 같은 클래스 파일인데 코드 내용이 조금씩 다름&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;$jacocoInit();&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;이런 코드들이 조작되어 들어감&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;test.dependsOn instrument&lt;/strong&gt;&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; outline: none !important; margin-top: 0px; margin-bottom: 0.55em; padding-left: 2em; line-height: 1.6;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;test&lt;/code&gt;는&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;instrument&lt;/code&gt;에 의존되기 때문에 테스트 전에&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;Offline instrument&lt;/code&gt;를 미리 생성한다.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr style=&quot;box-sizing: content-box; height: 0px; margin: 2em 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; border-image: initial; border-top-style: solid; border-top-color: rgba(102, 128, 153, 0.098); line-height: 1.6; outline: none !important;&quot;&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-107&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;pre class=&quot;prettyprint hljs-dark&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; white-space: pre-wrap; padding: 0px; margin-top: 0px; margin-bottom: 1.1em; line-height: 1.6; word-break: break-all; overflow-wrap: break-word; color: rgb(51, 51, 51); background: rgb(246, 246, 246); border: 0px; border-radius: 5px; outline: none !important;&quot;&gt;&lt;code class=&quot;language-bash hljs&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: inherit; padding: 0.5em; color: rgb(248, 248, 242); background: rgb(35, 36, 31); border-radius: 0px; display: block; overflow-x: auto; outline: none !important;&quot;&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;$ ./gradlew &lt;span class=&quot;hljs-built_in&quot; style=&quot;box-sizing: border-box; outline: none !important; display: inline; line-height: 1.6; background-color: transparent !important; color: rgb(230, 219, 116);&quot;&gt;test&lt;/span&gt;
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;...
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;Please supply original non-instrumented classes.
&lt;/div&gt;&lt;div class=&quot;hljs-line&quot; style=&quot;box-sizing: border-box; outline: none !important; min-height: 1.5em; color: inherit; background-color: transparent !important; line-height: 1.6;&quot;&gt;...
&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;ul style=&quot;box-sizing: border-box; outline: none !important; margin-top: 0px; margin-bottom: 1.1em; padding-left: 2em; line-height: 1.6;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;이제 커버리지가 제대로 나오지만 위와 같은 메세지가 나온다.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;Offline&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;방식은 비선호하는 거 같다.&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; outline: none !important; margin-top: 0px; margin-bottom: 0.55em; padding-left: 2em; line-height: 1.6;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;task 중 해당 메세지가 너무 많이 나오기 때문에 보고 싶지 않으면&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;$ ./gradlew test -q&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;옵션을 사용한다.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr style=&quot;box-sizing: content-box; height: 0px; margin: 2em 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; border-image: initial; border-top-style: solid; border-top-color: rgba(102, 128, 153, 0.098); line-height: 1.6; outline: none !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; line-height: 1.6; outline: none !important;&quot;&gt;자세한 예제는&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://github.com/SangHakLee/jacoco-offline-gradle&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://github.com/SangHakLee/jacoco-offline-gradle&lt;/a&gt;에서 확인 가능하다.&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-108&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;h3 id=&quot;conclusion&quot; style=&quot;box-sizing: border-box; font-family: inherit; line-height: 1.6; color: inherit; margin: 1.2em 0px 0.6em; font-size: 27.2px; outline: none !important;&quot;&gt;Conclusion&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;필자는 Java에 익숙하지 않다. JavaScript, Python 언어를 좋아하고 업무에서도 해당 언어를 주로 다뤘다.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;부서 이동으로 Java 환경에서 작업이 필요했고 개발하면서 Java에 대해 다시 알게 된 내용들이 많다.&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;대학 졸업 후 잊고 있었던 Java의 JVM, 컴파일, 바이트코드 등 Java의 동작 원리에 대해서 자세하게 알아본 좋은 기회였다.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;또한, 분명 학부 시절 Java는 컴파일 언어라 배웠고 그냥 그렇게 외우기만 했다. (보통 수업에 관심 없는 1학년 때 배우기 때문에 주요 개념만 외웠던 거 같다.)&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;사실, Java는 소스코드(.java)를 클래스 파일(.class)로 변환할 땐 컴파일하고 JVM이 런타임에선 인터프리터와&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://medium.com/@ahn428/java-jit-%EC%BB%B4%ED%8C%8C%EC%9D%BC%EB%9F%AC-c7d068e29f45&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;JIT 컴파일러&lt;/a&gt;를 사용한다는 사실도 다시 알게 됐다. (학부 때 배우긴 했을 것이다.)&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;코드 커버리지를 얻기 위해 대략 일주일을 이 문제 해결에 사용한 것 같다.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;만약, PowerMock이&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, monospace; font-size: 0.9em; padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px; outline: none !important;&quot;&gt;Javassist -&amp;gt; ByteBuddy&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;변경하여 이 문제를 겪지 않았다면 JVM 동작 방식에 대해서 이렇게 자세히 알아보려 하지 않았을 것이다.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;문제 해결 과정은 정말 힘들었지만, Java가 코드 커버리지를 측정하는 원리와 JVM 동작 원리에 대해서 깊게 공부할 수 있었다.&lt;/p&gt;&lt;/div&gt;&lt;div id=&quot;wmd-preview-section-109&quot; class=&quot;wmd-preview-section preview-content&quot; style=&quot;box-sizing: border-box; line-height: 1.6; color: rgb(44, 63, 81); font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Hiragino Sans GB&amp;quot;, STHeiti, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, SimSun, Song, sans-serif; font-size: 13.2222px; outline: none !important;&quot;&gt;&lt;h3 id=&quot;references&quot; style=&quot;box-sizing: border-box; font-family: inherit; line-height: 1.6; color: inherit; margin: 1.2em 0px 0.6em; font-size: 27.2px; outline: none !important;&quot;&gt;References&lt;/h3&gt;&lt;ul style=&quot;box-sizing: border-box; outline: none !important; margin-top: 0px; margin-bottom: 1.1em; padding-left: 2em; line-height: 1.6;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;https://www.jacoco.org/jacoco/trunk/doc/&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://www.jacoco.org/jacoco/trunk/doc/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;https://github.com/powermock/powermock/wiki/Code-coverage-with-JaCoCo&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://github.com/powermock/powermock/wiki/Code-coverage-with-JaCoCo&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;https://github.com/gradle/gradle/issues/2429&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://github.com/gradle/gradle/issues/2429&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;https://github.com/jacoco/jacoco/issues/51&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://github.com/jacoco/jacoco/issues/51&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;https://github.com/SurpSG/jacoco-offline-instrumentation&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://github.com/SurpSG/jacoco-offline-instrumentation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;https://github.com/raphw/byte-buddy/issues/296&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://github.com/raphw/byte-buddy/issues/296&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;https://github.com/AureaMohammadAlavi/gradle-jacoo-offline-instrumentation&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://github.com/AureaMohammadAlavi/gradle-jacoo-offline-instrumentation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;https://www.eclemma.org/jacoco/trunk/doc/offline.html&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://www.eclemma.org/jacoco/trunk/doc/offline.html&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;https://deidesheim.tistory.com/entry/%EC%9E%90%EB%B0%94-BCIByte-Code-Instrumentation-%EA%B0%84%EB%8B%A8-%EC%98%88%EC%A0%9C%EC%99%80-%EC%84%A4%EB%AA%85&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;Java BCI(Byte Code Instrumentation) 간단 예제와 설명&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;http://tcpschool.com/java/java_intro_programming&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;http://tcpschool.com/java/java_intro_programming&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;https://iamsang.com/blog/2012/08/19/introduction-to-java-bytecode/&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;https://iamsang.com/blog/2012/08/19/introduction-to-java-bytecode/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; outline: none !important; line-height: 1.6;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px; line-height: 1.6;&quot;&gt;&lt;a href=&quot;http://www.semdesigns.com/Company/Publications/TestCoverage.pdf&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(25, 128, 230); transition: background-color 0.15s ease-in-out 0s, color 0.15s ease-in-out 0s, border-color 0.15s ease-in-out 0s; outline: none !important;&quot;&gt;http://www.semdesigns.com/Company/Publications/TestCoverage.pdf&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr style=&quot;box-sizing: content-box; height: 0px; margin: 2em 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; border-image: initial; border-top-style: solid; border-top-color: rgba(102, 128, 153, 0.098); line-height: 1.6; outline: none !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: none !important; margin: 0px 0px 1.1em; line-height: 1.6;&quot;&gt;Java에 대해서 필자가 잘못 이해한 내용 혹은 잘못된 해석이 있다면 알려주세요.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: none !important;&quot;&gt;Java 동작 원리에 대해 완벽하게 이해하지 못하여 잘못된 정보를 설명했을 수도 있습니다.&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Java</category>
      <category>BDD</category>
      <category>Coverage</category>
      <category>JaCoCo</category>
      <category>java</category>
      <category>PowerMock</category>
      <category>TDD</category>
      <category>test</category>
      <author>학학이</author>
      <guid isPermaLink="true">https://sanghaklee.tistory.com/68</guid>
      <comments>https://sanghaklee.tistory.com/68#entry68comment</comments>
      <pubDate>Mon, 1 Jun 2020 19:38:27 +0900</pubDate>
    </item>
  </channel>
</rss>