본문 바로가기

은밀한 블로깅

(47)
UML 표기법 https://blog.naver.com/1ilsang/221104669002 Java 객체지향 디자인 패턴] 1. 객체지향 모델링 / UML, 클래스 다이어그램, 연관 관계, 일반화 관계, 집합 관계, 의존 관계, 실체화 관계 Java 객체지향 디자인 패턴] 1. 객체지향 모델링 / UML, 클래스 다이어그램, 연관 관계, 일반화 관계, ... blog.naver.com 관계 A -> B 1. Dependency(의존 관계, 점선 화살표, caller -> callee): B클래스 변수가 A의 메소드의 지역변수로 A의 메소드 scop에서만 B의 객체가 유지됨 a. (가장 일반적) 한 클래스의 메소드가 다른 클래스의 객체를 인자로 받아 그 메소드를 사용한다 b. 한 클래스의 메소드가 또 다른 클래스의 객..
SOLID - 객체지향 설계: 유지 보수와 확장이 쉬운 시스템 설계 S : 단일 책임 원칙(SRP) : 퍼사드, 프록시 패턴 클래스는 단순히 함수와 데이터를 결합한 집합 만약 하나의 클래스에 변경을 위한 두 가지 이상의 이유가 있다면 그 클래스는 한 가지 이상의 책임을 가지고 있는 것 SRP를 적용하면 클래스의 숫자가 늘 수는 있다. 하지만 클래스 숫자의 증가가 프로그램의 복잡도 증가와 비례하는 것은 아니다. Actor : 변경을 일으키는 사람 또는 집단 하나의 클래스는 하나의 Actor만을 책임 (하나의 역할만 할 것) 동일 객체의 역할 분리 : Interface와 각각의 역할 구현체로 분리(*ISP), 또는 상속을 통한 클래스 분할(*SRP) Facade 패턴 : SRP를 적용하면 클래스의 숫자가 늘어날 수 있는데, 클래스의 숫자가 늘어나면 사용이 불편하게 되므로 퍼..
Chaos Monkey - 운영 이슈 테스트 프로덕션 환경, 특히 분산 시스템 환경에서 불확실성을 파악하고 해결 방안을 모색하는데 사용하는 툴 운영환경의 불확실성의 예 - 네트워크 지연 - 서버 장애 - 디스크 오작동 - 메모리 누수 - ... http://netflix.github.io/chaosmonkey Home - Chaos Monkey Chaos Monkey is responsible for randomly terminating instances in production to ensure that engineers implement their services to be resilient to instance failures. See how to deploy for instructions on how to get up and running ..
JMeter - 성능 테스트 성능 측정 및 부하 측정 테스트 http://jmeter.apache.org Apache JMeter - Apache JMeter™ Apache JMeter™ The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other t jmeter.apache.org 웹, FTP, DB, Mail, REST 등등.. CLI 지원 Thread Group :..
httpie - http request tbd
Testcontainers (Docker) https://www.testcontainers.org Testcontainers  Testcontainers About Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container. Testcontainers make the following www.testcontainers.org 테스트에서 도커 컨테이너를 실행할 수 있는 라이브러리 @Testcontainers, @Container 홈페이지에가서 테스트에 필..
Mockito https://site.mockito.org Mockito framework site Intro Why How More Who Links Training Why drink it? Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. Mockito doesn’t give you hangover because the tests are very readable and they produce site.mockito.org 단위 테스트 http://martinfowler.com/bliki/UnitTest.html bliki: UnitTest Unit Tests..
spring-boot-starter-test 참고 https://cheese10yun.github.io/spring-boot-test/ Spring Boot Test - Yun Blog | 기술 블로그 Spring Boot Test - Yun Blog | 기술 블로그 cheese10yun.github.io https://happyer16.tistory.com/entry/Spring-Boot-Test-%EC%A2%85%ED%95%A9-%EC%A0%95%EB%A6%AC Spring Boot Test 종합 정리 ( 테스트종류, JUnit5 ) 개요 테스트코드의 중요성은 해당 블로그를 읽는 분이라면 모두 알고 있을 것이다. 나도 잘 알고 있지만, 정확한 사용법을 몰라 매번 @SpringBootTest 통합테스트로만 테스트코드를 작성하였다. 이렇게만 작성하..