7월, 2021의 게시물 표시

SecureCRT change saved password all in one

in Session Management view, Sessions -> right click -> Properties in Properties dialog, Connection -> SSH2 -> click Password in Authentication box -> click Properties... If want to change remote password also, click Change Password or just click OK.

Netty Unit Test

이미지
Netty 단위 테스트 간단 정리. ChannelHandler를 단위 테스트 하기 위해서 EmbeddedChannel을 이용한다. import io.netty.channel.embedded.EmbeddedChannel ; EmbeddedChannel 주요 API 1. writeInboud(Object... msgs)   -> EmbeddedChannel inbound에 msgs를 쓴다.       readInbound()로 읽어 올 수 있는 상태(=next handler에게 event 전파)이면 true리턴.  2. readInboud()   -> EmbeddedChannel inbound 메세지를 읽는다.       writeInboud()로 pipeline을 거쳐 저장된 결과를 리턴 하고 값이 없으면 null 리턴. 3. writeOutbound(Object... msgs)   -> EmbeddedChannel outbound에 msgs를 쓴다.       readOutbound()로 읽어 올 수 있는 상태(=next handler에게 event 전파)이면 true 리턴. 4. readOutbound()   -> EmbeddedChannel outbound 메세지를 읽는다.       writeOutbound()로 pipeline을 거쳐 저장된 결과를 리턴 하고 값이 없으면 null 리턴. 5. finish()   -> EmbeddedChannel이 완료 되었음을 표시.       inbound 또는 outbound 데이터를 읽을 수 있으면 true 리턴.       EmbeddedChannel.close() 도 호출. 출처: Netty in Action Unit Test 예제 1. netty pom.xml 1 2 3 4 5 <dependency> <groupId> io.netty </groupId> <artifactId> netty-all </artifac