【bash】curlした結果をdiffコマンドで比較
![Thumbnail of post image 181](https://hosochin.com/wp-content/uploads/2021/04/terminal-150x150.jpeg)
コマンドの結果を直接比較する場合は、diff
【Junit】staticメソッドをMockする
![Thumbnail of post image 047](https://hosochin.com/wp-content/uploads/2020/04/java-150x150.png)
ポイントはちゃんとclose()呼ぶことです
try-with-resources使えば勝手に呼ばれますが、test1の書き方でclose()を書かない場合、クラス単位でテスト実行すると以下のエラーが出るので要注意です
【jqコマンド】jsonの要素を絞り込み
![Thumbnail of post image 069](https://hosochin.com/wp-content/uploads/2021/04/terminal-150x150.jpeg)
jqコマンドはjsonデータをデータ抽出, 変換, 集計してくれるツールです
今回はjqコマンドを使ったjsonデータの検索について、よく使いそうだなと思ったコマンドを載っけておこうと思います
公式ドキュメント はこち ...
【Spring】Spring AOPについて
![Thumbnail of post image 052](https://hosochin.com/wp-content/uploads/2020/04/spring-boot-150x150.png)
はじめに
お世話にになります、hosochinです
さて、今回は
「Spring AOP」について
です
「AOP」とは、Aspect Oriented Programming ...