반응형

[application.properties]

spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss

반응형
반응형
반응형
반응형

오랫만에 깃허브에 push 좀 하려고 했더니 계속 인증 실패가 나네요 ㅜㅜ.

 

오류 메시지를 보면 2021.8.31 부터 패스워드 인증이 없어졌다고, 개인 토큰을 대신 사용하라는 내용입니다.

Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

 

그래서, 깃허브에서 토큰 발급 받아 소스트리에서 인증하는 방법을 공유합니다.

 

1. 깃허브 로그인 하시면 우측 상단에 프로필이 나타납니다.

    프로필을 눌러서 아래와 이미지처럼 Settings 메뉴를 선택합니다.

 

2.  프로필 화면으로 이동화면 왼쪽 메뉴에 "Developer settings" 가 있습니다. 클릭합니다.

- 프로필 화면 URL : https://github.com/settings/profile

 

GitHub: Where the world builds software

GitHub is where over 73 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

github.com

 

3.  개발자 설정 화면에서 "Personal aceess tokens" 메뉴를 클릭합니다.

- 개발자 설정 화면 URL : https://github.com/settings/apps

 

GitHub: Where the world builds software

GitHub is where over 73 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

github.com

 

4. 개인 접근 토큰 화면에서 "Generate new token" 버튼을 클릭합니다.

- URL : https://github.com/settings/tokens

 

GitHub: Where the world builds software

GitHub is where over 73 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

github.com

 

 

5.  토큰 생성 화면 입니다.

- URL : https://github.com/settings/tokens/new

 

GitHub: Where the world builds software

GitHub is where over 73 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

github.com

- Note 항목에 토큰 이름을 입력합니다.

- Expiration 항목은 토큰 유효기간 입니다.

- Select scopes 에서는 github 여러 기능들을 선택적으로 권한을 줄 수 있습니다. 보통은 그냥 repo 만으로도 충분합니다.

- 설정이 끝나면 맨 아래 "Generate token" 버튼을 클릭합니다.

 

6. 토큰이 생성 되었습니다. 해당 토큰을 복사 버튼을 클릭해 복사합니다.

 

7. 이 페이지에 다시 들어오면 아래와 같이 변경 됩니다.

 

8. 이제 소스트리에서 기존에 사용하던 repo의 패스워드를 초기화 해주어야 합니다.

- 아래 파일을 열어 깃허브에 해당하는 계정과 패스워드를 지워줍니다.

위치 : C:\Users\goni\AppData\Local\Atlassian\SourceTree

파일명 : passwd

내용 :

깃허브계정@github.com

암호화된 기존 패스워드

 

9. 소스트리에서 다시 Push를 하게 되면 아래와 같이 인증창이 다시 뜨는데, 이 때 Password에 새로 발급받은 토큰을 붙여넣기 하면 정상적으로 인증이 됩니다.

 

이상입니다.!

반응형
반응형

1. 인증 활성화

파일 : /etc/mongod.conf

내용 : 아래 부분 주석 해제 및 enabled 확인

security:
  authorization: enabled

** 외부 접속 시 bind_ip 를 0.0.0.0 으로 변경해야 한다.

 

2. 재시작

]# systemctl restart mongod

 

3. root 계정 생성

mongo> use admin

mongo> 

db.createUser(
{
    user: "dba",
    pwd: passwordPrompt(), // or cleartext password 
    roles: [ "root" ]
})

 

4. 일반 계정 생성

> use [DB명]

> db.createUser({ user: "test01", pwd: "mypassword", roles: [ "readWrite" ]})

 

5. 계정 비밀번호 수정

> db.changeUserPassword(username, password)

반응형

'Database' 카테고리의 다른 글

Mysql row data size query  (0) 2023.01.27
몽고DB 설치 (리눅스 CentOS7 - 2022.03.18)  (0) 2022.03.18
CentOS7 MariaDB 설치 (2021년10월)  (0) 2021.10.06
mysql trigger create  (0) 2021.10.04
오라클 clob컬럼에 ORA-01704 오류  (0) 2021.04.08
Mysql 변수 사용법  (0) 2021.03.05
Mysql 컬럼 조회  (0) 2020.12.16
오라클 컬럼 조회 쿼리  (0) 2020.12.10
반응형

설치 버전 : MongoDB 5.0 Community Edition

 

1. yum repos 등록

]# vi /etc/yum.repos.d/mongodb-org-5.0.repo

 

[mongodb-org-5.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/5.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-5.0.asc

2. yum install 실행

]# yum install -y mongodb-org

 

 

3. 몽고DB 시작

]# systemctl start mongod

 

4. 상태확인

]# systemctl status mongod

 

● mongod.service - MongoDB Database Server
   Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2022-03-18 13:55:57 KST; 49s ago
     Docs: https://docs.mongodb.org/manual
  Process: 4099 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=0/SUCCESS)
  Process: 4095 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
  Process: 4092 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
  Process: 4089 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)
 Main PID: 4101 (mongod)
   CGroup: /system.slice/mongod.service
           └─4101 /usr/bin/mongod -f /etc/mongod.conf

Mar 18 13:55:56 --- systemd[1]: Starting MongoDB Database Server...
Mar 18 13:55:56 --- mongod[4099]: about to fork child process, waiting until server is ready for connections.
Mar 18 13:55:56 --- mongod[4099]: forked process: 4101
Mar 18 13:55:57 --- mongod[4099]: child process started successfully, parent exiting
Mar 18 13:55:57 --- systemd[1]: Started MongoDB Database Server.

 

5. 재부팅 시 자동 실행

]# systemctl enable mongod

 

6. 종료 및 재시작

]# systemctl stop mongod

]# systemctl restart mongod

 

7. 로그 위치

/var/log/mongodb/mongod.log

 

8. 쉘명령어

mongosh

 

9. 포트 리스닝 확인

]# netstat -an|grep 27017

 

10. 프로세스 확인

]# ps -ef|grep mongod

반응형

'Database' 카테고리의 다른 글

Mysql row data size query  (0) 2023.01.27
몽고DB 사용자 생성  (0) 2022.03.18
CentOS7 MariaDB 설치 (2021년10월)  (0) 2021.10.06
mysql trigger create  (0) 2021.10.04
오라클 clob컬럼에 ORA-01704 오류  (0) 2021.04.08
Mysql 변수 사용법  (0) 2021.03.05
Mysql 컬럼 조회  (0) 2020.12.16
오라클 컬럼 조회 쿼리  (0) 2020.12.10
반응형

큰 수나, 형변환, 부동소수점 등의 문제를 회피하는데 도움이 됩니다.

반응형
반응형
  public static String convertNumberToHangul(String number) {
    String[] han1 = { """일""이""삼""사""오""육""칠""팔""구" };
    String[] han2 = { """십""백""천" };
    String[] han3 = { """만""억""조""경" };
    String result = "";
    int len = number.length();
    int nowInt = 0;
    boolean hasHan3 = false;
    for (int i = len; i > 0; i--) {
      nowInt = Integer.parseInt(number.substring(len - i, len - i + 1));
      int han2Pick = (i - 1) % 4;
      if (nowInt > 0) {
        result += (han1[nowInt]) + (han2[han2Pick]);
        if (han2Pick > 0) {
          hasHan3 = false;
        }
      }
      if (!hasHan3 && han2Pick == 0) {
        result += (han3[(i - 1/ 4]);
        hasHan3 = true;
      }
    }
    return result.toString();
  }

 

조 단위까지는 엑셀의 한글 변환 기능과 비교해서 어느 정도 정확도가 보장됩니다.

(구글링해서 돌아다니는 소스들 중에 문제가 있는게 대부분이더라구요 ㅜㅜ)

 

테스트 코드

public class FormatUtilTest {
  public static void assertTrue(String errMsg, boolean b) {
    if (b == false) {
      throw new RuntimeException(errMsg);
    }
  }

  public static void main(String[] args) {
    assertTrue(FormatUtil.convertNumberToHangul("1"), FormatUtil.convertNumberToHangul("1").equals("일"));
    assertTrue(FormatUtil.convertNumberToHangul("11"), FormatUtil.convertNumberToHangul("11").equals("일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("111"), FormatUtil.convertNumberToHangul("111").equals("일백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("1111"), FormatUtil.convertNumberToHangul("1111").equals("일천일백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("11111"), FormatUtil.convertNumberToHangul("11111").equals("일만일천일백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("111111"), FormatUtil.convertNumberToHangul("111111").equals("일십일만일천일백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("1111111"), FormatUtil.convertNumberToHangul("1111111").equals("일백일십일만일천일백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("11111111"), FormatUtil.convertNumberToHangul("11111111").equals("일천일백일십일만일천일백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("111111111"), FormatUtil.convertNumberToHangul("111111111").equals("일억일천일백일십일만일천일백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("1111111111"), FormatUtil.convertNumberToHangul("1111111111").equals("일십일억일천일백일십일만일천일백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("11111111111"), FormatUtil.convertNumberToHangul("11111111111").equals("일백일십일억일천일백일십일만일천일백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("111111111111"), FormatUtil.convertNumberToHangul("111111111111").equals("일천일백일십일억일천일백일십일만일천일백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("1111111111111"), FormatUtil.convertNumberToHangul("1111111111111").equals("일조일천일백일십일억일천일백일십일만일천일백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("11111111111111"), FormatUtil.convertNumberToHangul("11111111111111").equals("일십일조일천일백일십일억일천일백일십일만일천일백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("111111111111111"), FormatUtil.convertNumberToHangul("111111111111111").equals("일백일십일조일천일백일십일억일천일백일십일만일천일백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("2"), FormatUtil.convertNumberToHangul("2").equals("이"));
    assertTrue(FormatUtil.convertNumberToHangul("22"), FormatUtil.convertNumberToHangul("22").equals("이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("222"), FormatUtil.convertNumberToHangul("222").equals("이백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("2222"), FormatUtil.convertNumberToHangul("2222").equals("이천이백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("22222"), FormatUtil.convertNumberToHangul("22222").equals("이만이천이백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("222222"), FormatUtil.convertNumberToHangul("222222").equals("이십이만이천이백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("2222222"), FormatUtil.convertNumberToHangul("2222222").equals("이백이십이만이천이백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("22222222"), FormatUtil.convertNumberToHangul("22222222").equals("이천이백이십이만이천이백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("222222222"), FormatUtil.convertNumberToHangul("222222222").equals("이억이천이백이십이만이천이백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("2222222222"), FormatUtil.convertNumberToHangul("2222222222").equals("이십이억이천이백이십이만이천이백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("22222222222"), FormatUtil.convertNumberToHangul("22222222222").equals("이백이십이억이천이백이십이만이천이백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("222222222222"), FormatUtil.convertNumberToHangul("222222222222").equals("이천이백이십이억이천이백이십이만이천이백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("2222222222222"), FormatUtil.convertNumberToHangul("2222222222222").equals("이조이천이백이십이억이천이백이십이만이천이백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("22222222222222"), FormatUtil.convertNumberToHangul("22222222222222").equals("이십이조이천이백이십이억이천이백이십이만이천이백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("222222222222222"), FormatUtil.convertNumberToHangul("222222222222222").equals("이백이십이조이천이백이십이억이천이백이십이만이천이백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("3"), FormatUtil.convertNumberToHangul("3").equals("삼"));
    assertTrue(FormatUtil.convertNumberToHangul("33"), FormatUtil.convertNumberToHangul("33").equals("삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("333"), FormatUtil.convertNumberToHangul("333").equals("삼백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("3333"), FormatUtil.convertNumberToHangul("3333").equals("삼천삼백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("33333"), FormatUtil.convertNumberToHangul("33333").equals("삼만삼천삼백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("333333"), FormatUtil.convertNumberToHangul("333333").equals("삼십삼만삼천삼백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("3333333"), FormatUtil.convertNumberToHangul("3333333").equals("삼백삼십삼만삼천삼백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("33333333"), FormatUtil.convertNumberToHangul("33333333").equals("삼천삼백삼십삼만삼천삼백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("333333333"), FormatUtil.convertNumberToHangul("333333333").equals("삼억삼천삼백삼십삼만삼천삼백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("3333333333"), FormatUtil.convertNumberToHangul("3333333333").equals("삼십삼억삼천삼백삼십삼만삼천삼백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("33333333333"), FormatUtil.convertNumberToHangul("33333333333").equals("삼백삼십삼억삼천삼백삼십삼만삼천삼백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("333333333333"), FormatUtil.convertNumberToHangul("333333333333").equals("삼천삼백삼십삼억삼천삼백삼십삼만삼천삼백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("3333333333333"), FormatUtil.convertNumberToHangul("3333333333333").equals("삼조삼천삼백삼십삼억삼천삼백삼십삼만삼천삼백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("33333333333333"), FormatUtil.convertNumberToHangul("33333333333333").equals("삼십삼조삼천삼백삼십삼억삼천삼백삼십삼만삼천삼백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("333333333333333"), FormatUtil.convertNumberToHangul("333333333333333").equals("삼백삼십삼조삼천삼백삼십삼억삼천삼백삼십삼만삼천삼백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("4"), FormatUtil.convertNumberToHangul("4").equals("사"));
    assertTrue(FormatUtil.convertNumberToHangul("44"), FormatUtil.convertNumberToHangul("44").equals("사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("444"), FormatUtil.convertNumberToHangul("444").equals("사백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("4444"), FormatUtil.convertNumberToHangul("4444").equals("사천사백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("44444"), FormatUtil.convertNumberToHangul("44444").equals("사만사천사백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("444444"), FormatUtil.convertNumberToHangul("444444").equals("사십사만사천사백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("4444444"), FormatUtil.convertNumberToHangul("4444444").equals("사백사십사만사천사백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("44444444"), FormatUtil.convertNumberToHangul("44444444").equals("사천사백사십사만사천사백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("444444444"), FormatUtil.convertNumberToHangul("444444444").equals("사억사천사백사십사만사천사백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("4444444444"), FormatUtil.convertNumberToHangul("4444444444").equals("사십사억사천사백사십사만사천사백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("44444444444"), FormatUtil.convertNumberToHangul("44444444444").equals("사백사십사억사천사백사십사만사천사백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("444444444444"), FormatUtil.convertNumberToHangul("444444444444").equals("사천사백사십사억사천사백사십사만사천사백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("4444444444444"), FormatUtil.convertNumberToHangul("4444444444444").equals("사조사천사백사십사억사천사백사십사만사천사백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("44444444444444"), FormatUtil.convertNumberToHangul("44444444444444").equals("사십사조사천사백사십사억사천사백사십사만사천사백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("444444444444444"), FormatUtil.convertNumberToHangul("444444444444444").equals("사백사십사조사천사백사십사억사천사백사십사만사천사백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("5"), FormatUtil.convertNumberToHangul("5").equals("오"));
    assertTrue(FormatUtil.convertNumberToHangul("55"), FormatUtil.convertNumberToHangul("55").equals("오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("555"), FormatUtil.convertNumberToHangul("555").equals("오백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("5555"), FormatUtil.convertNumberToHangul("5555").equals("오천오백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("55555"), FormatUtil.convertNumberToHangul("55555").equals("오만오천오백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("555555"), FormatUtil.convertNumberToHangul("555555").equals("오십오만오천오백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("5555555"), FormatUtil.convertNumberToHangul("5555555").equals("오백오십오만오천오백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("55555555"), FormatUtil.convertNumberToHangul("55555555").equals("오천오백오십오만오천오백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("555555555"), FormatUtil.convertNumberToHangul("555555555").equals("오억오천오백오십오만오천오백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("5555555555"), FormatUtil.convertNumberToHangul("5555555555").equals("오십오억오천오백오십오만오천오백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("55555555555"), FormatUtil.convertNumberToHangul("55555555555").equals("오백오십오억오천오백오십오만오천오백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("555555555555"), FormatUtil.convertNumberToHangul("555555555555").equals("오천오백오십오억오천오백오십오만오천오백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("5555555555555"), FormatUtil.convertNumberToHangul("5555555555555").equals("오조오천오백오십오억오천오백오십오만오천오백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("55555555555555"), FormatUtil.convertNumberToHangul("55555555555555").equals("오십오조오천오백오십오억오천오백오십오만오천오백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("555555555555555"), FormatUtil.convertNumberToHangul("555555555555555").equals("오백오십오조오천오백오십오억오천오백오십오만오천오백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("6"), FormatUtil.convertNumberToHangul("6").equals("육"));
    assertTrue(FormatUtil.convertNumberToHangul("66"), FormatUtil.convertNumberToHangul("66").equals("육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("666"), FormatUtil.convertNumberToHangul("666").equals("육백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("6666"), FormatUtil.convertNumberToHangul("6666").equals("육천육백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("66666"), FormatUtil.convertNumberToHangul("66666").equals("육만육천육백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("666666"), FormatUtil.convertNumberToHangul("666666").equals("육십육만육천육백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("6666666"), FormatUtil.convertNumberToHangul("6666666").equals("육백육십육만육천육백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("66666666"), FormatUtil.convertNumberToHangul("66666666").equals("육천육백육십육만육천육백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("666666666"), FormatUtil.convertNumberToHangul("666666666").equals("육억육천육백육십육만육천육백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("6666666666"), FormatUtil.convertNumberToHangul("6666666666").equals("육십육억육천육백육십육만육천육백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("66666666666"), FormatUtil.convertNumberToHangul("66666666666").equals("육백육십육억육천육백육십육만육천육백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("666666666666"), FormatUtil.convertNumberToHangul("666666666666").equals("육천육백육십육억육천육백육십육만육천육백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("6666666666666"), FormatUtil.convertNumberToHangul("6666666666666").equals("육조육천육백육십육억육천육백육십육만육천육백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("66666666666666"), FormatUtil.convertNumberToHangul("66666666666666").equals("육십육조육천육백육십육억육천육백육십육만육천육백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("666666666666666"), FormatUtil.convertNumberToHangul("666666666666666").equals("육백육십육조육천육백육십육억육천육백육십육만육천육백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("7"), FormatUtil.convertNumberToHangul("7").equals("칠"));
    assertTrue(FormatUtil.convertNumberToHangul("77"), FormatUtil.convertNumberToHangul("77").equals("칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("777"), FormatUtil.convertNumberToHangul("777").equals("칠백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("7777"), FormatUtil.convertNumberToHangul("7777").equals("칠천칠백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("77777"), FormatUtil.convertNumberToHangul("77777").equals("칠만칠천칠백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("777777"), FormatUtil.convertNumberToHangul("777777").equals("칠십칠만칠천칠백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("7777777"), FormatUtil.convertNumberToHangul("7777777").equals("칠백칠십칠만칠천칠백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("77777777"), FormatUtil.convertNumberToHangul("77777777").equals("칠천칠백칠십칠만칠천칠백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("777777777"), FormatUtil.convertNumberToHangul("777777777").equals("칠억칠천칠백칠십칠만칠천칠백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("7777777777"), FormatUtil.convertNumberToHangul("7777777777").equals("칠십칠억칠천칠백칠십칠만칠천칠백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("77777777777"), FormatUtil.convertNumberToHangul("77777777777").equals("칠백칠십칠억칠천칠백칠십칠만칠천칠백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("777777777777"), FormatUtil.convertNumberToHangul("777777777777").equals("칠천칠백칠십칠억칠천칠백칠십칠만칠천칠백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("7777777777777"), FormatUtil.convertNumberToHangul("7777777777777").equals("칠조칠천칠백칠십칠억칠천칠백칠십칠만칠천칠백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("77777777777777"), FormatUtil.convertNumberToHangul("77777777777777").equals("칠십칠조칠천칠백칠십칠억칠천칠백칠십칠만칠천칠백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("777777777777777"), FormatUtil.convertNumberToHangul("777777777777777").equals("칠백칠십칠조칠천칠백칠십칠억칠천칠백칠십칠만칠천칠백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("8"), FormatUtil.convertNumberToHangul("8").equals("팔"));
    assertTrue(FormatUtil.convertNumberToHangul("88"), FormatUtil.convertNumberToHangul("88").equals("팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("888"), FormatUtil.convertNumberToHangul("888").equals("팔백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("8888"), FormatUtil.convertNumberToHangul("8888").equals("팔천팔백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("88888"), FormatUtil.convertNumberToHangul("88888").equals("팔만팔천팔백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("888888"), FormatUtil.convertNumberToHangul("888888").equals("팔십팔만팔천팔백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("8888888"), FormatUtil.convertNumberToHangul("8888888").equals("팔백팔십팔만팔천팔백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("88888888"), FormatUtil.convertNumberToHangul("88888888").equals("팔천팔백팔십팔만팔천팔백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("888888888"), FormatUtil.convertNumberToHangul("888888888").equals("팔억팔천팔백팔십팔만팔천팔백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("8888888888"), FormatUtil.convertNumberToHangul("8888888888").equals("팔십팔억팔천팔백팔십팔만팔천팔백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("88888888888"), FormatUtil.convertNumberToHangul("88888888888").equals("팔백팔십팔억팔천팔백팔십팔만팔천팔백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("888888888888"), FormatUtil.convertNumberToHangul("888888888888").equals("팔천팔백팔십팔억팔천팔백팔십팔만팔천팔백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("8888888888888"), FormatUtil.convertNumberToHangul("8888888888888").equals("팔조팔천팔백팔십팔억팔천팔백팔십팔만팔천팔백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("88888888888888"), FormatUtil.convertNumberToHangul("88888888888888").equals("팔십팔조팔천팔백팔십팔억팔천팔백팔십팔만팔천팔백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("888888888888888"), FormatUtil.convertNumberToHangul("888888888888888").equals("팔백팔십팔조팔천팔백팔십팔억팔천팔백팔십팔만팔천팔백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("9"), FormatUtil.convertNumberToHangul("9").equals("구"));
    assertTrue(FormatUtil.convertNumberToHangul("99"), FormatUtil.convertNumberToHangul("99").equals("구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("999"), FormatUtil.convertNumberToHangul("999").equals("구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("9999"), FormatUtil.convertNumberToHangul("9999").equals("구천구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("99999"), FormatUtil.convertNumberToHangul("99999").equals("구만구천구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("999999"), FormatUtil.convertNumberToHangul("999999").equals("구십구만구천구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("9999999"), FormatUtil.convertNumberToHangul("9999999").equals("구백구십구만구천구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("99999999"), FormatUtil.convertNumberToHangul("99999999").equals("구천구백구십구만구천구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("999999999"), FormatUtil.convertNumberToHangul("999999999").equals("구억구천구백구십구만구천구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("9999999999"), FormatUtil.convertNumberToHangul("9999999999").equals("구십구억구천구백구십구만구천구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("99999999999"), FormatUtil.convertNumberToHangul("99999999999").equals("구백구십구억구천구백구십구만구천구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("999999999999"), FormatUtil.convertNumberToHangul("999999999999").equals("구천구백구십구억구천구백구십구만구천구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("9999999999999"), FormatUtil.convertNumberToHangul("9999999999999").equals("구조구천구백구십구억구천구백구십구만구천구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("99999999999999"), FormatUtil.convertNumberToHangul("99999999999999").equals("구십구조구천구백구십구억구천구백구십구만구천구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("999999999999999"), FormatUtil.convertNumberToHangul("999999999999999").equals("구백구십구조구천구백구십구억구천구백구십구만구천구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("10"), FormatUtil.convertNumberToHangul("10").equals("일십"));
    assertTrue(FormatUtil.convertNumberToHangul("100"), FormatUtil.convertNumberToHangul("100").equals("일백"));
    assertTrue(FormatUtil.convertNumberToHangul("1000"), FormatUtil.convertNumberToHangul("1000").equals("일천"));
    assertTrue(FormatUtil.convertNumberToHangul("10000"), FormatUtil.convertNumberToHangul("10000").equals("일만"));
    assertTrue(FormatUtil.convertNumberToHangul("100000"), FormatUtil.convertNumberToHangul("100000").equals("일십만"));
    assertTrue(FormatUtil.convertNumberToHangul("1000000"), FormatUtil.convertNumberToHangul("1000000").equals("일백만"));
    assertTrue(FormatUtil.convertNumberToHangul("10000000"), FormatUtil.convertNumberToHangul("10000000").equals("일천만"));
    assertTrue(FormatUtil.convertNumberToHangul("100000000"), FormatUtil.convertNumberToHangul("100000000").equals("일억"));
    assertTrue(FormatUtil.convertNumberToHangul("1000000000"), FormatUtil.convertNumberToHangul("1000000000").equals("일십억"));
    assertTrue(FormatUtil.convertNumberToHangul("10000000000"), FormatUtil.convertNumberToHangul("10000000000").equals("일백억"));
    assertTrue(FormatUtil.convertNumberToHangul("100000000000"), FormatUtil.convertNumberToHangul("100000000000").equals("일천억"));
    assertTrue(FormatUtil.convertNumberToHangul("1000000000000"), FormatUtil.convertNumberToHangul("1000000000000").equals("일조"));
    assertTrue(FormatUtil.convertNumberToHangul("10000000000000"), FormatUtil.convertNumberToHangul("10000000000000").equals("일십조"));
    assertTrue(FormatUtil.convertNumberToHangul("100000000000000"), FormatUtil.convertNumberToHangul("100000000000000").equals("일백조"));
    assertTrue(FormatUtil.convertNumberToHangul("1000000000000000"), FormatUtil.convertNumberToHangul("1000000000000000").equals("일천조"));
    assertTrue(FormatUtil.convertNumberToHangul("20"), FormatUtil.convertNumberToHangul("20").equals("이십"));
    assertTrue(FormatUtil.convertNumberToHangul("200"), FormatUtil.convertNumberToHangul("200").equals("이백"));
    assertTrue(FormatUtil.convertNumberToHangul("2000"), FormatUtil.convertNumberToHangul("2000").equals("이천"));
    assertTrue(FormatUtil.convertNumberToHangul("20000"), FormatUtil.convertNumberToHangul("20000").equals("이만"));
    assertTrue(FormatUtil.convertNumberToHangul("200000"), FormatUtil.convertNumberToHangul("200000").equals("이십만"));
    assertTrue(FormatUtil.convertNumberToHangul("2000000"), FormatUtil.convertNumberToHangul("2000000").equals("이백만"));
    assertTrue(FormatUtil.convertNumberToHangul("20000000"), FormatUtil.convertNumberToHangul("20000000").equals("이천만"));
    assertTrue(FormatUtil.convertNumberToHangul("200000000"), FormatUtil.convertNumberToHangul("200000000").equals("이억"));
    assertTrue(FormatUtil.convertNumberToHangul("2000000000"), FormatUtil.convertNumberToHangul("2000000000").equals("이십억"));
    assertTrue(FormatUtil.convertNumberToHangul("20000000000"), FormatUtil.convertNumberToHangul("20000000000").equals("이백억"));
    assertTrue(FormatUtil.convertNumberToHangul("200000000000"), FormatUtil.convertNumberToHangul("200000000000").equals("이천억"));
    assertTrue(FormatUtil.convertNumberToHangul("2000000000000"), FormatUtil.convertNumberToHangul("2000000000000").equals("이조"));
    assertTrue(FormatUtil.convertNumberToHangul("20000000000000"), FormatUtil.convertNumberToHangul("20000000000000").equals("이십조"));
    assertTrue(FormatUtil.convertNumberToHangul("200000000000000"), FormatUtil.convertNumberToHangul("200000000000000").equals("이백조"));
    assertTrue(FormatUtil.convertNumberToHangul("2000000000000000"), FormatUtil.convertNumberToHangul("2000000000000000").equals("이천조"));
    assertTrue(FormatUtil.convertNumberToHangul("30"), FormatUtil.convertNumberToHangul("30").equals("삼십"));
    assertTrue(FormatUtil.convertNumberToHangul("300"), FormatUtil.convertNumberToHangul("300").equals("삼백"));
    assertTrue(FormatUtil.convertNumberToHangul("3000"), FormatUtil.convertNumberToHangul("3000").equals("삼천"));
    assertTrue(FormatUtil.convertNumberToHangul("30000"), FormatUtil.convertNumberToHangul("30000").equals("삼만"));
    assertTrue(FormatUtil.convertNumberToHangul("300000"), FormatUtil.convertNumberToHangul("300000").equals("삼십만"));
    assertTrue(FormatUtil.convertNumberToHangul("3000000"), FormatUtil.convertNumberToHangul("3000000").equals("삼백만"));
    assertTrue(FormatUtil.convertNumberToHangul("30000000"), FormatUtil.convertNumberToHangul("30000000").equals("삼천만"));
    assertTrue(FormatUtil.convertNumberToHangul("300000000"), FormatUtil.convertNumberToHangul("300000000").equals("삼억"));
    assertTrue(FormatUtil.convertNumberToHangul("3000000000"), FormatUtil.convertNumberToHangul("3000000000").equals("삼십억"));
    assertTrue(FormatUtil.convertNumberToHangul("30000000000"), FormatUtil.convertNumberToHangul("30000000000").equals("삼백억"));
    assertTrue(FormatUtil.convertNumberToHangul("300000000000"), FormatUtil.convertNumberToHangul("300000000000").equals("삼천억"));
    assertTrue(FormatUtil.convertNumberToHangul("3000000000000"), FormatUtil.convertNumberToHangul("3000000000000").equals("삼조"));
    assertTrue(FormatUtil.convertNumberToHangul("30000000000000"), FormatUtil.convertNumberToHangul("30000000000000").equals("삼십조"));
    assertTrue(FormatUtil.convertNumberToHangul("300000000000000"), FormatUtil.convertNumberToHangul("300000000000000").equals("삼백조"));
    assertTrue(FormatUtil.convertNumberToHangul("3000000000000000"), FormatUtil.convertNumberToHangul("3000000000000000").equals("삼천조"));
    assertTrue(FormatUtil.convertNumberToHangul("40"), FormatUtil.convertNumberToHangul("40").equals("사십"));
    assertTrue(FormatUtil.convertNumberToHangul("400"), FormatUtil.convertNumberToHangul("400").equals("사백"));
    assertTrue(FormatUtil.convertNumberToHangul("4000"), FormatUtil.convertNumberToHangul("4000").equals("사천"));
    assertTrue(FormatUtil.convertNumberToHangul("40000"), FormatUtil.convertNumberToHangul("40000").equals("사만"));
    assertTrue(FormatUtil.convertNumberToHangul("400000"), FormatUtil.convertNumberToHangul("400000").equals("사십만"));
    assertTrue(FormatUtil.convertNumberToHangul("4000000"), FormatUtil.convertNumberToHangul("4000000").equals("사백만"));
    assertTrue(FormatUtil.convertNumberToHangul("40000000"), FormatUtil.convertNumberToHangul("40000000").equals("사천만"));
    assertTrue(FormatUtil.convertNumberToHangul("400000000"), FormatUtil.convertNumberToHangul("400000000").equals("사억"));
    assertTrue(FormatUtil.convertNumberToHangul("4000000000"), FormatUtil.convertNumberToHangul("4000000000").equals("사십억"));
    assertTrue(FormatUtil.convertNumberToHangul("40000000000"), FormatUtil.convertNumberToHangul("40000000000").equals("사백억"));
    assertTrue(FormatUtil.convertNumberToHangul("400000000000"), FormatUtil.convertNumberToHangul("400000000000").equals("사천억"));
    assertTrue(FormatUtil.convertNumberToHangul("4000000000000"), FormatUtil.convertNumberToHangul("4000000000000").equals("사조"));
    assertTrue(FormatUtil.convertNumberToHangul("40000000000000"), FormatUtil.convertNumberToHangul("40000000000000").equals("사십조"));
    assertTrue(FormatUtil.convertNumberToHangul("400000000000000"), FormatUtil.convertNumberToHangul("400000000000000").equals("사백조"));
    assertTrue(FormatUtil.convertNumberToHangul("4000000000000000"), FormatUtil.convertNumberToHangul("4000000000000000").equals("사천조"));
    assertTrue(FormatUtil.convertNumberToHangul("50"), FormatUtil.convertNumberToHangul("50").equals("오십"));
    assertTrue(FormatUtil.convertNumberToHangul("500"), FormatUtil.convertNumberToHangul("500").equals("오백"));
    assertTrue(FormatUtil.convertNumberToHangul("5000"), FormatUtil.convertNumberToHangul("5000").equals("오천"));
    assertTrue(FormatUtil.convertNumberToHangul("50000"), FormatUtil.convertNumberToHangul("50000").equals("오만"));
    assertTrue(FormatUtil.convertNumberToHangul("500000"), FormatUtil.convertNumberToHangul("500000").equals("오십만"));
    assertTrue(FormatUtil.convertNumberToHangul("5000000"), FormatUtil.convertNumberToHangul("5000000").equals("오백만"));
    assertTrue(FormatUtil.convertNumberToHangul("50000000"), FormatUtil.convertNumberToHangul("50000000").equals("오천만"));
    assertTrue(FormatUtil.convertNumberToHangul("500000000"), FormatUtil.convertNumberToHangul("500000000").equals("오억"));
    assertTrue(FormatUtil.convertNumberToHangul("5000000000"), FormatUtil.convertNumberToHangul("5000000000").equals("오십억"));
    assertTrue(FormatUtil.convertNumberToHangul("50000000000"), FormatUtil.convertNumberToHangul("50000000000").equals("오백억"));
    assertTrue(FormatUtil.convertNumberToHangul("500000000000"), FormatUtil.convertNumberToHangul("500000000000").equals("오천억"));
    assertTrue(FormatUtil.convertNumberToHangul("5000000000000"), FormatUtil.convertNumberToHangul("5000000000000").equals("오조"));
    assertTrue(FormatUtil.convertNumberToHangul("50000000000000"), FormatUtil.convertNumberToHangul("50000000000000").equals("오십조"));
    assertTrue(FormatUtil.convertNumberToHangul("500000000000000"), FormatUtil.convertNumberToHangul("500000000000000").equals("오백조"));
    assertTrue(FormatUtil.convertNumberToHangul("5000000000000000"), FormatUtil.convertNumberToHangul("5000000000000000").equals("오천조"));
    assertTrue(FormatUtil.convertNumberToHangul("60"), FormatUtil.convertNumberToHangul("60").equals("육십"));
    assertTrue(FormatUtil.convertNumberToHangul("600"), FormatUtil.convertNumberToHangul("600").equals("육백"));
    assertTrue(FormatUtil.convertNumberToHangul("6000"), FormatUtil.convertNumberToHangul("6000").equals("육천"));
    assertTrue(FormatUtil.convertNumberToHangul("60000"), FormatUtil.convertNumberToHangul("60000").equals("육만"));
    assertTrue(FormatUtil.convertNumberToHangul("600000"), FormatUtil.convertNumberToHangul("600000").equals("육십만"));
    assertTrue(FormatUtil.convertNumberToHangul("6000000"), FormatUtil.convertNumberToHangul("6000000").equals("육백만"));
    assertTrue(FormatUtil.convertNumberToHangul("60000000"), FormatUtil.convertNumberToHangul("60000000").equals("육천만"));
    assertTrue(FormatUtil.convertNumberToHangul("600000000"), FormatUtil.convertNumberToHangul("600000000").equals("육억"));
    assertTrue(FormatUtil.convertNumberToHangul("6000000000"), FormatUtil.convertNumberToHangul("6000000000").equals("육십억"));
    assertTrue(FormatUtil.convertNumberToHangul("60000000000"), FormatUtil.convertNumberToHangul("60000000000").equals("육백억"));
    assertTrue(FormatUtil.convertNumberToHangul("600000000000"), FormatUtil.convertNumberToHangul("600000000000").equals("육천억"));
    assertTrue(FormatUtil.convertNumberToHangul("6000000000000"), FormatUtil.convertNumberToHangul("6000000000000").equals("육조"));
    assertTrue(FormatUtil.convertNumberToHangul("60000000000000"), FormatUtil.convertNumberToHangul("60000000000000").equals("육십조"));
    assertTrue(FormatUtil.convertNumberToHangul("600000000000000"), FormatUtil.convertNumberToHangul("600000000000000").equals("육백조"));
    assertTrue(FormatUtil.convertNumberToHangul("6000000000000000"), FormatUtil.convertNumberToHangul("6000000000000000").equals("육천조"));
    assertTrue(FormatUtil.convertNumberToHangul("70"), FormatUtil.convertNumberToHangul("70").equals("칠십"));
    assertTrue(FormatUtil.convertNumberToHangul("700"), FormatUtil.convertNumberToHangul("700").equals("칠백"));
    assertTrue(FormatUtil.convertNumberToHangul("7000"), FormatUtil.convertNumberToHangul("7000").equals("칠천"));
    assertTrue(FormatUtil.convertNumberToHangul("70000"), FormatUtil.convertNumberToHangul("70000").equals("칠만"));
    assertTrue(FormatUtil.convertNumberToHangul("700000"), FormatUtil.convertNumberToHangul("700000").equals("칠십만"));
    assertTrue(FormatUtil.convertNumberToHangul("7000000"), FormatUtil.convertNumberToHangul("7000000").equals("칠백만"));
    assertTrue(FormatUtil.convertNumberToHangul("70000000"), FormatUtil.convertNumberToHangul("70000000").equals("칠천만"));
    assertTrue(FormatUtil.convertNumberToHangul("700000000"), FormatUtil.convertNumberToHangul("700000000").equals("칠억"));
    assertTrue(FormatUtil.convertNumberToHangul("7000000000"), FormatUtil.convertNumberToHangul("7000000000").equals("칠십억"));
    assertTrue(FormatUtil.convertNumberToHangul("70000000000"), FormatUtil.convertNumberToHangul("70000000000").equals("칠백억"));
    assertTrue(FormatUtil.convertNumberToHangul("700000000000"), FormatUtil.convertNumberToHangul("700000000000").equals("칠천억"));
    assertTrue(FormatUtil.convertNumberToHangul("7000000000000"), FormatUtil.convertNumberToHangul("7000000000000").equals("칠조"));
    assertTrue(FormatUtil.convertNumberToHangul("70000000000000"), FormatUtil.convertNumberToHangul("70000000000000").equals("칠십조"));
    assertTrue(FormatUtil.convertNumberToHangul("700000000000000"), FormatUtil.convertNumberToHangul("700000000000000").equals("칠백조"));
    assertTrue(FormatUtil.convertNumberToHangul("7000000000000000"), FormatUtil.convertNumberToHangul("7000000000000000").equals("칠천조"));
    assertTrue(FormatUtil.convertNumberToHangul("80"), FormatUtil.convertNumberToHangul("80").equals("팔십"));
    assertTrue(FormatUtil.convertNumberToHangul("800"), FormatUtil.convertNumberToHangul("800").equals("팔백"));
    assertTrue(FormatUtil.convertNumberToHangul("8000"), FormatUtil.convertNumberToHangul("8000").equals("팔천"));
    assertTrue(FormatUtil.convertNumberToHangul("80000"), FormatUtil.convertNumberToHangul("80000").equals("팔만"));
    assertTrue(FormatUtil.convertNumberToHangul("800000"), FormatUtil.convertNumberToHangul("800000").equals("팔십만"));
    assertTrue(FormatUtil.convertNumberToHangul("8000000"), FormatUtil.convertNumberToHangul("8000000").equals("팔백만"));
    assertTrue(FormatUtil.convertNumberToHangul("80000000"), FormatUtil.convertNumberToHangul("80000000").equals("팔천만"));
    assertTrue(FormatUtil.convertNumberToHangul("800000000"), FormatUtil.convertNumberToHangul("800000000").equals("팔억"));
    assertTrue(FormatUtil.convertNumberToHangul("8000000000"), FormatUtil.convertNumberToHangul("8000000000").equals("팔십억"));
    assertTrue(FormatUtil.convertNumberToHangul("80000000000"), FormatUtil.convertNumberToHangul("80000000000").equals("팔백억"));
    assertTrue(FormatUtil.convertNumberToHangul("800000000000"), FormatUtil.convertNumberToHangul("800000000000").equals("팔천억"));
    assertTrue(FormatUtil.convertNumberToHangul("8000000000000"), FormatUtil.convertNumberToHangul("8000000000000").equals("팔조"));
    assertTrue(FormatUtil.convertNumberToHangul("80000000000000"), FormatUtil.convertNumberToHangul("80000000000000").equals("팔십조"));
    assertTrue(FormatUtil.convertNumberToHangul("800000000000000"), FormatUtil.convertNumberToHangul("800000000000000").equals("팔백조"));
    assertTrue(FormatUtil.convertNumberToHangul("8000000000000000"), FormatUtil.convertNumberToHangul("8000000000000000").equals("팔천조"));
    assertTrue(FormatUtil.convertNumberToHangul("90"), FormatUtil.convertNumberToHangul("90").equals("구십"));
    assertTrue(FormatUtil.convertNumberToHangul("900"), FormatUtil.convertNumberToHangul("900").equals("구백"));
    assertTrue(FormatUtil.convertNumberToHangul("9000"), FormatUtil.convertNumberToHangul("9000").equals("구천"));
    assertTrue(FormatUtil.convertNumberToHangul("90000"), FormatUtil.convertNumberToHangul("90000").equals("구만"));
    assertTrue(FormatUtil.convertNumberToHangul("900000"), FormatUtil.convertNumberToHangul("900000").equals("구십만"));
    assertTrue(FormatUtil.convertNumberToHangul("9000000"), FormatUtil.convertNumberToHangul("9000000").equals("구백만"));
    assertTrue(FormatUtil.convertNumberToHangul("90000000"), FormatUtil.convertNumberToHangul("90000000").equals("구천만"));
    assertTrue(FormatUtil.convertNumberToHangul("900000000"), FormatUtil.convertNumberToHangul("900000000").equals("구억"));
    assertTrue(FormatUtil.convertNumberToHangul("9000000000"), FormatUtil.convertNumberToHangul("9000000000").equals("구십억"));
    assertTrue(FormatUtil.convertNumberToHangul("90000000000"), FormatUtil.convertNumberToHangul("90000000000").equals("구백억"));
    assertTrue(FormatUtil.convertNumberToHangul("900000000000"), FormatUtil.convertNumberToHangul("900000000000").equals("구천억"));
    assertTrue(FormatUtil.convertNumberToHangul("9000000000000"), FormatUtil.convertNumberToHangul("9000000000000").equals("구조"));
    assertTrue(FormatUtil.convertNumberToHangul("90000000000000"), FormatUtil.convertNumberToHangul("90000000000000").equals("구십조"));
    assertTrue(FormatUtil.convertNumberToHangul("900000000000000"), FormatUtil.convertNumberToHangul("900000000000000").equals("구백조"));
    assertTrue(FormatUtil.convertNumberToHangul("9000000000000000"), FormatUtil.convertNumberToHangul("9000000000000000").equals("구천조"));
    assertTrue(FormatUtil.convertNumberToHangul("1"), FormatUtil.convertNumberToHangul("1").equals("일"));
    assertTrue(FormatUtil.convertNumberToHangul("18"), FormatUtil.convertNumberToHangul("18").equals("일십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("181"), FormatUtil.convertNumberToHangul("181").equals("일백팔십일"));
    assertTrue(FormatUtil.convertNumberToHangul("1815"), FormatUtil.convertNumberToHangul("1815").equals("일천팔백일십오"));
    assertTrue(FormatUtil.convertNumberToHangul("18152"), FormatUtil.convertNumberToHangul("18152").equals("일만팔천일백오십이"));
    assertTrue(FormatUtil.convertNumberToHangul("1815210"), FormatUtil.convertNumberToHangul("1815210").equals("일백팔십일만오천이백일십"));
    assertTrue(FormatUtil.convertNumberToHangul("18152103"), FormatUtil.convertNumberToHangul("18152103").equals("일천팔백일십오만이천일백삼"));
    assertTrue(FormatUtil.convertNumberToHangul("181521039"), FormatUtil.convertNumberToHangul("181521039").equals("일억팔천일백오십이만일천삼십구"));
    assertTrue(FormatUtil.convertNumberToHangul("1815210391"), FormatUtil.convertNumberToHangul("1815210391").equals("일십팔억일천오백이십일만삼백구십일"));
    assertTrue(FormatUtil.convertNumberToHangul("18152103918"), FormatUtil.convertNumberToHangul("18152103918").equals("일백팔십일억오천이백일십만삼천구백일십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("181521039187"), FormatUtil.convertNumberToHangul("181521039187").equals("일천팔백일십오억이천일백삼만구천일백팔십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("1815210391879"), FormatUtil.convertNumberToHangul("1815210391879").equals("일조팔천일백오십이억일천삼십구만일천팔백칠십구"));
    assertTrue(FormatUtil.convertNumberToHangul("18152103918797"), FormatUtil.convertNumberToHangul("18152103918797").equals("일십팔조일천오백이십일억삼백구십일만팔천칠백구십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("181521039187971"), FormatUtil.convertNumberToHangul("181521039187971").equals("일백팔십일조오천이백일십억삼천구백일십팔만칠천구백칠십일"));
    assertTrue(FormatUtil.convertNumberToHangul("1815210391879710"), FormatUtil.convertNumberToHangul("1815210391879710").equals("일천팔백일십오조이천일백삼억구천일백팔십칠만구천칠백일십"));
    assertTrue(FormatUtil.convertNumberToHangul("10"), FormatUtil.convertNumberToHangul("10").equals("일십"));
    assertTrue(FormatUtil.convertNumberToHangul("107"), FormatUtil.convertNumberToHangul("107").equals("일백칠"));
    assertTrue(FormatUtil.convertNumberToHangul("1078"), FormatUtil.convertNumberToHangul("1078").equals("일천칠십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("10788"), FormatUtil.convertNumberToHangul("10788").equals("일만칠백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("107886"), FormatUtil.convertNumberToHangul("107886").equals("일십만칠천팔백팔십육"));
    assertTrue(FormatUtil.convertNumberToHangul("1078861"), FormatUtil.convertNumberToHangul("1078861").equals("일백칠만팔천팔백육십일"));
    assertTrue(FormatUtil.convertNumberToHangul("10788612"), FormatUtil.convertNumberToHangul("10788612").equals("일천칠십팔만팔천육백일십이"));
    assertTrue(FormatUtil.convertNumberToHangul("107886129"), FormatUtil.convertNumberToHangul("107886129").equals("일억칠백팔십팔만육천일백이십구"));
    assertTrue(FormatUtil.convertNumberToHangul("1078861291"), FormatUtil.convertNumberToHangul("1078861291").equals("일십억칠천팔백팔십육만일천이백구십일"));
    assertTrue(FormatUtil.convertNumberToHangul("10788612911"), FormatUtil.convertNumberToHangul("10788612911").equals("일백칠억팔천팔백육십일만이천구백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("107886129118"), FormatUtil.convertNumberToHangul("107886129118").equals("일천칠십팔억팔천육백일십이만구천일백일십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("1078861291182"), FormatUtil.convertNumberToHangul("1078861291182").equals("일조칠백팔십팔억육천일백이십구만일천일백팔십이"));
    assertTrue(FormatUtil.convertNumberToHangul("10788612911822"), FormatUtil.convertNumberToHangul("10788612911822").equals("일십조칠천팔백팔십육억일천이백구십일만일천팔백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("107886129118227"), FormatUtil.convertNumberToHangul("107886129118227").equals("일백칠조팔천팔백육십일억이천구백일십일만팔천이백이십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("3"), FormatUtil.convertNumberToHangul("3").equals("삼"));
    assertTrue(FormatUtil.convertNumberToHangul("31"), FormatUtil.convertNumberToHangul("31").equals("삼십일"));
    assertTrue(FormatUtil.convertNumberToHangul("315"), FormatUtil.convertNumberToHangul("315").equals("삼백일십오"));
    assertTrue(FormatUtil.convertNumberToHangul("31510"), FormatUtil.convertNumberToHangul("31510").equals("삼만일천오백일십"));
    assertTrue(FormatUtil.convertNumberToHangul("315109"), FormatUtil.convertNumberToHangul("315109").equals("삼십일만오천일백구"));
    assertTrue(FormatUtil.convertNumberToHangul("3151098"), FormatUtil.convertNumberToHangul("3151098").equals("삼백일십오만일천구십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("31510981"), FormatUtil.convertNumberToHangul("31510981").equals("삼천일백오십일만구백팔십일"));
    assertTrue(FormatUtil.convertNumberToHangul("315109814"), FormatUtil.convertNumberToHangul("315109814").equals("삼억일천오백일십만구천팔백일십사"));
    assertTrue(FormatUtil.convertNumberToHangul("3151098141"), FormatUtil.convertNumberToHangul("3151098141").equals("삼십일억오천일백구만팔천일백사십일"));
    assertTrue(FormatUtil.convertNumberToHangul("31510981419"), FormatUtil.convertNumberToHangul("31510981419").equals("삼백일십오억일천구십팔만일천사백일십구"));
    assertTrue(FormatUtil.convertNumberToHangul("315109814197"), FormatUtil.convertNumberToHangul("315109814197").equals("삼천일백오십일억구백팔십일만사천일백구십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("3151098141976"), FormatUtil.convertNumberToHangul("3151098141976").equals("삼조일천오백일십억구천팔백일십사만일천구백칠십육"));
    assertTrue(FormatUtil.convertNumberToHangul("31510981419766"), FormatUtil.convertNumberToHangul("31510981419766").equals("삼십일조오천일백구억팔천일백사십일만구천칠백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("315109814197664"), FormatUtil.convertNumberToHangul("315109814197664").equals("삼백일십오조일천구십팔억일천사백일십구만칠천육백육십사"));
    assertTrue(FormatUtil.convertNumberToHangul("3151098141976640"), FormatUtil.convertNumberToHangul("3151098141976640").equals("삼천일백오십일조구백팔십일억사천일백구십칠만육천육백사십"));
    assertTrue(FormatUtil.convertNumberToHangul("5"), FormatUtil.convertNumberToHangul("5").equals("오"));
    assertTrue(FormatUtil.convertNumberToHangul("55"), FormatUtil.convertNumberToHangul("55").equals("오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("550"), FormatUtil.convertNumberToHangul("550").equals("오백오십"));
    assertTrue(FormatUtil.convertNumberToHangul("5504"), FormatUtil.convertNumberToHangul("5504").equals("오천오백사"));
    assertTrue(FormatUtil.convertNumberToHangul("55041"), FormatUtil.convertNumberToHangul("55041").equals("오만오천사십일"));
    assertTrue(FormatUtil.convertNumberToHangul("550418"), FormatUtil.convertNumberToHangul("550418").equals("오십오만사백일십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("5504185"), FormatUtil.convertNumberToHangul("5504185").equals("오백오십만사천일백팔십오"));
    assertTrue(FormatUtil.convertNumberToHangul("55041854"), FormatUtil.convertNumberToHangul("55041854").equals("오천오백사만일천팔백오십사"));
    assertTrue(FormatUtil.convertNumberToHangul("550418547"), FormatUtil.convertNumberToHangul("550418547").equals("오억오천사십일만팔천오백사십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("5504185474"), FormatUtil.convertNumberToHangul("5504185474").equals("오십오억사백일십팔만오천사백칠십사"));
    assertTrue(FormatUtil.convertNumberToHangul("55041854746"), FormatUtil.convertNumberToHangul("55041854746").equals("오백오십억사천일백팔십오만사천칠백사십육"));
    assertTrue(FormatUtil.convertNumberToHangul("550418547468"), FormatUtil.convertNumberToHangul("550418547468").equals("오천오백사억일천팔백오십사만칠천사백육십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("5504185474688"), FormatUtil.convertNumberToHangul("5504185474688").equals("오조오천사십일억팔천오백사십칠만사천육백팔십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("55041854746883"), FormatUtil.convertNumberToHangul("55041854746883").equals("오십오조사백일십팔억오천사백칠십사만육천팔백팔십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("550418547468831"), FormatUtil.convertNumberToHangul("550418547468831").equals("오백오십조사천일백팔십오억사천칠백사십육만팔천팔백삼십일"));
    assertTrue(FormatUtil.convertNumberToHangul("2"), FormatUtil.convertNumberToHangul("2").equals("이"));
    assertTrue(FormatUtil.convertNumberToHangul("23"), FormatUtil.convertNumberToHangul("23").equals("이십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("233"), FormatUtil.convertNumberToHangul("233").equals("이백삼십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("2337"), FormatUtil.convertNumberToHangul("2337").equals("이천삼백삼십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("23379"), FormatUtil.convertNumberToHangul("23379").equals("이만삼천삼백칠십구"));
    assertTrue(FormatUtil.convertNumberToHangul("2337910"), FormatUtil.convertNumberToHangul("2337910").equals("이백삼십삼만칠천구백일십"));
    assertTrue(FormatUtil.convertNumberToHangul("23379104"), FormatUtil.convertNumberToHangul("23379104").equals("이천삼백삼십칠만구천일백사"));
    assertTrue(FormatUtil.convertNumberToHangul("233791047"), FormatUtil.convertNumberToHangul("233791047").equals("이억삼천삼백칠십구만일천사십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("2337910477"), FormatUtil.convertNumberToHangul("2337910477").equals("이십삼억삼천칠백구십일만사백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("23379104774"), FormatUtil.convertNumberToHangul("23379104774").equals("이백삼십삼억칠천구백일십만사천칠백칠십사"));
    assertTrue(FormatUtil.convertNumberToHangul("233791047746"), FormatUtil.convertNumberToHangul("233791047746").equals("이천삼백삼십칠억구천일백사만칠천칠백사십육"));
    assertTrue(FormatUtil.convertNumberToHangul("2337910477466"), FormatUtil.convertNumberToHangul("2337910477466").equals("이조삼천삼백칠십구억일천사십칠만칠천사백육십육"));
    assertTrue(FormatUtil.convertNumberToHangul("23379104774661"), FormatUtil.convertNumberToHangul("23379104774661").equals("이십삼조삼천칠백구십일억사백칠십칠만사천육백육십일"));
    assertTrue(FormatUtil.convertNumberToHangul("233791047746615"), FormatUtil.convertNumberToHangul("233791047746615").equals("이백삼십삼조칠천구백일십억사천칠백칠십사만육천육백일십오"));
    assertTrue(FormatUtil.convertNumberToHangul("2337910477466150"), FormatUtil.convertNumberToHangul("2337910477466150").equals("이천삼백삼십칠조구천일백사억칠천칠백사십육만육천일백오십"));
    assertTrue(FormatUtil.convertNumberToHangul("3"), FormatUtil.convertNumberToHangul("3").equals("삼"));
    assertTrue(FormatUtil.convertNumberToHangul("37"), FormatUtil.convertNumberToHangul("37").equals("삼십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("372"), FormatUtil.convertNumberToHangul("372").equals("삼백칠십이"));
    assertTrue(FormatUtil.convertNumberToHangul("3725"), FormatUtil.convertNumberToHangul("3725").equals("삼천칠백이십오"));
    assertTrue(FormatUtil.convertNumberToHangul("37255"), FormatUtil.convertNumberToHangul("37255").equals("삼만칠천이백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("372556"), FormatUtil.convertNumberToHangul("372556").equals("삼십칠만이천오백오십육"));
    assertTrue(FormatUtil.convertNumberToHangul("3725563"), FormatUtil.convertNumberToHangul("3725563").equals("삼백칠십이만오천오백육십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("37255631"), FormatUtil.convertNumberToHangul("37255631").equals("삼천칠백이십오만오천육백삼십일"));
    assertTrue(FormatUtil.convertNumberToHangul("372556314"), FormatUtil.convertNumberToHangul("372556314").equals("삼억칠천이백오십오만육천삼백일십사"));
    assertTrue(FormatUtil.convertNumberToHangul("3725563149"), FormatUtil.convertNumberToHangul("3725563149").equals("삼십칠억이천오백오십육만삼천일백사십구"));
    assertTrue(FormatUtil.convertNumberToHangul("37255631492"), FormatUtil.convertNumberToHangul("37255631492").equals("삼백칠십이억오천오백육십삼만일천사백구십이"));
    assertTrue(FormatUtil.convertNumberToHangul("372556314923"), FormatUtil.convertNumberToHangul("372556314923").equals("삼천칠백이십오억오천육백삼십일만사천구백이십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("3725563149235"), FormatUtil.convertNumberToHangul("3725563149235").equals("삼조칠천이백오십오억육천삼백일십사만구천이백삼십오"));
    assertTrue(FormatUtil.convertNumberToHangul("37255631492352"), FormatUtil.convertNumberToHangul("37255631492352").equals("삼십칠조이천오백오십육억삼천일백사십구만이천삼백오십이"));
    assertTrue(FormatUtil.convertNumberToHangul("372556314923520"), FormatUtil.convertNumberToHangul("372556314923520").equals("삼백칠십이조오천오백육십삼억일천사백구십이만삼천오백이십"));
    assertTrue(FormatUtil.convertNumberToHangul("7"), FormatUtil.convertNumberToHangul("7").equals("칠"));
    assertTrue(FormatUtil.convertNumberToHangul("76"), FormatUtil.convertNumberToHangul("76").equals("칠십육"));
    assertTrue(FormatUtil.convertNumberToHangul("762"), FormatUtil.convertNumberToHangul("762").equals("칠백육십이"));
    assertTrue(FormatUtil.convertNumberToHangul("7629"), FormatUtil.convertNumberToHangul("7629").equals("칠천육백이십구"));
    assertTrue(FormatUtil.convertNumberToHangul("762910"), FormatUtil.convertNumberToHangul("762910").equals("칠십육만이천구백일십"));
    assertTrue(FormatUtil.convertNumberToHangul("7629103"), FormatUtil.convertNumberToHangul("7629103").equals("칠백육십이만구천일백삼"));
    assertTrue(FormatUtil.convertNumberToHangul("762910310"), FormatUtil.convertNumberToHangul("762910310").equals("칠억육천이백구십일만삼백일십"));
    assertTrue(FormatUtil.convertNumberToHangul("7629103107"), FormatUtil.convertNumberToHangul("7629103107").equals("칠십육억이천구백일십만삼천일백칠"));
    assertTrue(FormatUtil.convertNumberToHangul("76291031071"), FormatUtil.convertNumberToHangul("76291031071").equals("칠백육십이억구천일백삼만일천칠십일"));
    assertTrue(FormatUtil.convertNumberToHangul("762910310716"), FormatUtil.convertNumberToHangul("762910310716").equals("칠천육백이십구억일천삼십일만칠백일십육"));
    assertTrue(FormatUtil.convertNumberToHangul("76291031071610"), FormatUtil.convertNumberToHangul("76291031071610").equals("칠십육조이천구백일십억삼천일백칠만일천육백일십"));
    assertTrue(FormatUtil.convertNumberToHangul("762910310716106"), FormatUtil.convertNumberToHangul("762910310716106").equals("칠백육십이조구천일백삼억일천칠십일만육천일백육"));
    assertTrue(FormatUtil.convertNumberToHangul("7629103107161060"), FormatUtil.convertNumberToHangul("7629103107161060").equals("칠천육백이십구조일천삼십일억칠백일십육만일천육십"));
    assertTrue(FormatUtil.convertNumberToHangul("7"), FormatUtil.convertNumberToHangul("7").equals("칠"));
    assertTrue(FormatUtil.convertNumberToHangul("77"), FormatUtil.convertNumberToHangul("77").equals("칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("778"), FormatUtil.convertNumberToHangul("778").equals("칠백칠십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("7786"), FormatUtil.convertNumberToHangul("7786").equals("칠천칠백팔십육"));
    assertTrue(FormatUtil.convertNumberToHangul("77864"), FormatUtil.convertNumberToHangul("77864").equals("칠만칠천팔백육십사"));
    assertTrue(FormatUtil.convertNumberToHangul("778646"), FormatUtil.convertNumberToHangul("778646").equals("칠십칠만팔천육백사십육"));
    assertTrue(FormatUtil.convertNumberToHangul("7786462"), FormatUtil.convertNumberToHangul("7786462").equals("칠백칠십팔만육천사백육십이"));
    assertTrue(FormatUtil.convertNumberToHangul("77864622"), FormatUtil.convertNumberToHangul("77864622").equals("칠천칠백팔십육만사천육백이십이"));
    assertTrue(FormatUtil.convertNumberToHangul("778646227"), FormatUtil.convertNumberToHangul("778646227").equals("칠억칠천팔백육십사만육천이백이십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("7786462271"), FormatUtil.convertNumberToHangul("7786462271").equals("칠십칠억팔천육백사십육만이천이백칠십일"));
    assertTrue(FormatUtil.convertNumberToHangul("77864622713"), FormatUtil.convertNumberToHangul("77864622713").equals("칠백칠십팔억육천사백육십이만이천칠백일십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("778646227137"), FormatUtil.convertNumberToHangul("778646227137").equals("칠천칠백팔십육억사천육백이십이만칠천일백삼십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("7786462271379"), FormatUtil.convertNumberToHangul("7786462271379").equals("칠조칠천팔백육십사억육천이백이십칠만일천삼백칠십구"));
    assertTrue(FormatUtil.convertNumberToHangul("77864622713792"), FormatUtil.convertNumberToHangul("77864622713792").equals("칠십칠조팔천육백사십육억이천이백칠십일만삼천칠백구십이"));
    assertTrue(FormatUtil.convertNumberToHangul("778646227137924"), FormatUtil.convertNumberToHangul("778646227137924").equals("칠백칠십팔조육천사백육십이억이천칠백일십삼만칠천구백이십사"));
    assertTrue(FormatUtil.convertNumberToHangul("5"), FormatUtil.convertNumberToHangul("5").equals("오"));
    assertTrue(FormatUtil.convertNumberToHangul("51"), FormatUtil.convertNumberToHangul("51").equals("오십일"));
    assertTrue(FormatUtil.convertNumberToHangul("517"), FormatUtil.convertNumberToHangul("517").equals("오백일십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("51710"), FormatUtil.convertNumberToHangul("51710").equals("오만일천칠백일십"));
    assertTrue(FormatUtil.convertNumberToHangul("517101"), FormatUtil.convertNumberToHangul("517101").equals("오십일만칠천일백일"));
    assertTrue(FormatUtil.convertNumberToHangul("5171013"), FormatUtil.convertNumberToHangul("5171013").equals("오백일십칠만일천일십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("51710136"), FormatUtil.convertNumberToHangul("51710136").equals("오천일백칠십일만일백삼십육"));
    assertTrue(FormatUtil.convertNumberToHangul("517101364"), FormatUtil.convertNumberToHangul("517101364").equals("오억일천칠백일십만일천삼백육십사"));
    assertTrue(FormatUtil.convertNumberToHangul("5171013649"), FormatUtil.convertNumberToHangul("5171013649").equals("오십일억칠천일백일만삼천육백사십구"));
    assertTrue(FormatUtil.convertNumberToHangul("51710136492"), FormatUtil.convertNumberToHangul("51710136492").equals("오백일십칠억일천일십삼만육천사백구십이"));
    assertTrue(FormatUtil.convertNumberToHangul("517101364920"), FormatUtil.convertNumberToHangul("517101364920").equals("오천일백칠십일억일백삼십육만사천구백이십"));
    assertTrue(FormatUtil.convertNumberToHangul("5171013649204"), FormatUtil.convertNumberToHangul("5171013649204").equals("오조일천칠백일십억일천삼백육십사만구천이백사"));
    assertTrue(FormatUtil.convertNumberToHangul("51710136492045"), FormatUtil.convertNumberToHangul("51710136492045").equals("오십일조칠천일백일억삼천육백사십구만이천사십오"));
    assertTrue(FormatUtil.convertNumberToHangul("517101364920459"), FormatUtil.convertNumberToHangul("517101364920459").equals("오백일십칠조일천일십삼억육천사백구십이만사백오십구"));
    assertTrue(FormatUtil.convertNumberToHangul("5171013649204590"), FormatUtil.convertNumberToHangul("5171013649204590").equals("오천일백칠십일조일백삼십육억사천구백이십만사천오백구십"));
    assertTrue(FormatUtil.convertNumberToHangul("3969674"), FormatUtil.convertNumberToHangul("3969674").equals("삼백구십육만구천육백칠십사"));
    assertTrue(FormatUtil.convertNumberToHangul("39696746"), FormatUtil.convertNumberToHangul("39696746").equals("삼천구백육십구만육천칠백사십육"));
    assertTrue(FormatUtil.convertNumberToHangul("396967468"), FormatUtil.convertNumberToHangul("396967468").equals("삼억구천육백구십육만칠천사백육십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("3969674689"), FormatUtil.convertNumberToHangul("3969674689").equals("삼십구억육천구백육십칠만사천육백팔십구"));
    assertTrue(FormatUtil.convertNumberToHangul("39696746898"), FormatUtil.convertNumberToHangul("39696746898").equals("삼백구십육억구천육백칠십사만육천팔백구십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("396967468981"), FormatUtil.convertNumberToHangul("396967468981").equals("삼천구백육십구억육천칠백사십육만팔천구백팔십일"));
    assertTrue(FormatUtil.convertNumberToHangul("3969674689815"), FormatUtil.convertNumberToHangul("3969674689815").equals("삼조구천육백구십육억칠천사백육십팔만구천팔백일십오"));
    assertTrue(FormatUtil.convertNumberToHangul("39696746898157"), FormatUtil.convertNumberToHangul("39696746898157").equals("삼십구조육천구백육십칠억사천육백팔십구만팔천일백오십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("396967468981577"), FormatUtil.convertNumberToHangul("396967468981577").equals("삼백구십육조구천육백칠십사억육천팔백구십팔만일천오백칠십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("3969674689815770"), FormatUtil.convertNumberToHangul("3969674689815770").equals("삼천구백육십구조육천칠백사십육억팔천구백팔십일만오천칠백칠십"));
    assertTrue(FormatUtil.convertNumberToHangul("1"), FormatUtil.convertNumberToHangul("1").equals("일"));
    assertTrue(FormatUtil.convertNumberToHangul("14"), FormatUtil.convertNumberToHangul("14").equals("일십사"));
    assertTrue(FormatUtil.convertNumberToHangul("146"), FormatUtil.convertNumberToHangul("146").equals("일백사십육"));
    assertTrue(FormatUtil.convertNumberToHangul("1464"), FormatUtil.convertNumberToHangul("1464").equals("일천사백육십사"));
    assertTrue(FormatUtil.convertNumberToHangul("14646"), FormatUtil.convertNumberToHangul("14646").equals("일만사천육백사십육"));
    assertTrue(FormatUtil.convertNumberToHangul("146469"), FormatUtil.convertNumberToHangul("146469").equals("일십사만육천사백육십구"));
    assertTrue(FormatUtil.convertNumberToHangul("1464694"), FormatUtil.convertNumberToHangul("1464694").equals("일백사십육만사천육백구십사"));
    assertTrue(FormatUtil.convertNumberToHangul("14646949"), FormatUtil.convertNumberToHangul("14646949").equals("일천사백육십사만육천구백사십구"));
    assertTrue(FormatUtil.convertNumberToHangul("146469494"), FormatUtil.convertNumberToHangul("146469494").equals("일억사천육백사십육만구천사백구십사"));
    assertTrue(FormatUtil.convertNumberToHangul("1464694944"), FormatUtil.convertNumberToHangul("1464694944").equals("일십사억육천사백육십구만사천구백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("14646949447"), FormatUtil.convertNumberToHangul("14646949447").equals("일백사십육억사천육백구십사만구천사백사십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("146469494475"), FormatUtil.convertNumberToHangul("146469494475").equals("일천사백육십사억육천구백사십구만사천사백칠십오"));
    assertTrue(FormatUtil.convertNumberToHangul("1464694944755"), FormatUtil.convertNumberToHangul("1464694944755").equals("일조사천육백사십육억구천사백구십사만사천칠백오십오"));
    assertTrue(FormatUtil.convertNumberToHangul("14646949447554"), FormatUtil.convertNumberToHangul("14646949447554").equals("일십사조육천사백육십구억사천구백사십사만칠천오백오십사"));
    assertTrue(FormatUtil.convertNumberToHangul("1464694944755410"), FormatUtil.convertNumberToHangul("1464694944755410").equals("일천사백육십사조육천구백사십구억사천사백칠십오만오천사백일십"));
    assertTrue(FormatUtil.convertNumberToHangul("2"), FormatUtil.convertNumberToHangul("2").equals("이"));
    assertTrue(FormatUtil.convertNumberToHangul("21"), FormatUtil.convertNumberToHangul("21").equals("이십일"));
    assertTrue(FormatUtil.convertNumberToHangul("212"), FormatUtil.convertNumberToHangul("212").equals("이백일십이"));
    assertTrue(FormatUtil.convertNumberToHangul("2125"), FormatUtil.convertNumberToHangul("2125").equals("이천일백이십오"));
    assertTrue(FormatUtil.convertNumberToHangul("21254"), FormatUtil.convertNumberToHangul("21254").equals("이만일천이백오십사"));
    assertTrue(FormatUtil.convertNumberToHangul("212540"), FormatUtil.convertNumberToHangul("212540").equals("이십일만이천오백사십"));
    assertTrue(FormatUtil.convertNumberToHangul("2125403"), FormatUtil.convertNumberToHangul("2125403").equals("이백일십이만오천사백삼"));
    assertTrue(FormatUtil.convertNumberToHangul("21254031"), FormatUtil.convertNumberToHangul("21254031").equals("이천일백이십오만사천삼십일"));
    assertTrue(FormatUtil.convertNumberToHangul("212540315"), FormatUtil.convertNumberToHangul("212540315").equals("이억일천이백오십사만삼백일십오"));
    assertTrue(FormatUtil.convertNumberToHangul("2125403151"), FormatUtil.convertNumberToHangul("2125403151").equals("이십일억이천오백사십만삼천일백오십일"));
    assertTrue(FormatUtil.convertNumberToHangul("21254031511"), FormatUtil.convertNumberToHangul("21254031511").equals("이백일십이억오천사백삼만일천오백일십일"));
    assertTrue(FormatUtil.convertNumberToHangul("212540315119"), FormatUtil.convertNumberToHangul("212540315119").equals("이천일백이십오억사천삼십일만오천일백일십구"));
    assertTrue(FormatUtil.convertNumberToHangul("2125403151193"), FormatUtil.convertNumberToHangul("2125403151193").equals("이조일천이백오십사억삼백일십오만일천일백구십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("21254031511936"), FormatUtil.convertNumberToHangul("21254031511936").equals("이십일조이천오백사십억삼천일백오십일만일천구백삼십육"));
    assertTrue(FormatUtil.convertNumberToHangul("2125403151193610"), FormatUtil.convertNumberToHangul("2125403151193610").equals("이천일백이십오조사천삼십일억오천일백일십구만삼천육백일십"));
    assertTrue(FormatUtil.convertNumberToHangul("5"), FormatUtil.convertNumberToHangul("5").equals("오"));
    assertTrue(FormatUtil.convertNumberToHangul("54"), FormatUtil.convertNumberToHangul("54").equals("오십사"));
    assertTrue(FormatUtil.convertNumberToHangul("544"), FormatUtil.convertNumberToHangul("544").equals("오백사십사"));
    assertTrue(FormatUtil.convertNumberToHangul("5449"), FormatUtil.convertNumberToHangul("5449").equals("오천사백사십구"));
    assertTrue(FormatUtil.convertNumberToHangul("54494"), FormatUtil.convertNumberToHangul("54494").equals("오만사천사백구십사"));
    assertTrue(FormatUtil.convertNumberToHangul("544949"), FormatUtil.convertNumberToHangul("544949").equals("오십사만사천구백사십구"));
    assertTrue(FormatUtil.convertNumberToHangul("5449494"), FormatUtil.convertNumberToHangul("5449494").equals("오백사십사만구천사백구십사"));
    assertTrue(FormatUtil.convertNumberToHangul("54494945"), FormatUtil.convertNumberToHangul("54494945").equals("오천사백사십구만사천구백사십오"));
    assertTrue(FormatUtil.convertNumberToHangul("544949459"), FormatUtil.convertNumberToHangul("544949459").equals("오억사천사백구십사만구천사백오십구"));
    assertTrue(FormatUtil.convertNumberToHangul("5449494599"), FormatUtil.convertNumberToHangul("5449494599").equals("오십사억사천구백사십구만사천오백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("54494945999"), FormatUtil.convertNumberToHangul("54494945999").equals("오백사십사억구천사백구십사만오천구백구십구"));
    assertTrue(FormatUtil.convertNumberToHangul("544949459993"), FormatUtil.convertNumberToHangul("544949459993").equals("오천사백사십구억사천구백사십오만구천구백구십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("5449494599937"), FormatUtil.convertNumberToHangul("5449494599937").equals("오조사천사백구십사억구천사백오십구만구천구백삼십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("54494945999376"), FormatUtil.convertNumberToHangul("54494945999376").equals("오십사조사천구백사십구억사천오백구십구만구천삼백칠십육"));
    assertTrue(FormatUtil.convertNumberToHangul("544949459993767"), FormatUtil.convertNumberToHangul("544949459993767").equals("오백사십사조구천사백구십사억오천구백구십구만삼천칠백육십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("5449494599937670"), FormatUtil.convertNumberToHangul("5449494599937670").equals("오천사백사십구조사천구백사십오억구천구백구십삼만칠천육백칠십"));
    assertTrue(FormatUtil.convertNumberToHangul("9"), FormatUtil.convertNumberToHangul("9").equals("구"));
    assertTrue(FormatUtil.convertNumberToHangul("91"), FormatUtil.convertNumberToHangul("91").equals("구십일"));
    assertTrue(FormatUtil.convertNumberToHangul("917"), FormatUtil.convertNumberToHangul("917").equals("구백일십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("9172"), FormatUtil.convertNumberToHangul("9172").equals("구천일백칠십이"));
    assertTrue(FormatUtil.convertNumberToHangul("91727"), FormatUtil.convertNumberToHangul("91727").equals("구만일천칠백이십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("917275"), FormatUtil.convertNumberToHangul("917275").equals("구십일만칠천이백칠십오"));
    assertTrue(FormatUtil.convertNumberToHangul("9172756"), FormatUtil.convertNumberToHangul("9172756").equals("구백일십칠만이천칠백오십육"));
    assertTrue(FormatUtil.convertNumberToHangul("91727565"), FormatUtil.convertNumberToHangul("91727565").equals("구천일백칠십이만칠천오백육십오"));
    assertTrue(FormatUtil.convertNumberToHangul("917275654"), FormatUtil.convertNumberToHangul("917275654").equals("구억일천칠백이십칠만오천육백오십사"));
    assertTrue(FormatUtil.convertNumberToHangul("9172756547"), FormatUtil.convertNumberToHangul("9172756547").equals("구십일억칠천이백칠십오만육천오백사십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("91727565478"), FormatUtil.convertNumberToHangul("91727565478").equals("구백일십칠억이천칠백오십육만오천사백칠십팔"));
    assertTrue(FormatUtil.convertNumberToHangul("917275654786"), FormatUtil.convertNumberToHangul("917275654786").equals("구천일백칠십이억칠천오백육십오만사천칠백팔십육"));
    assertTrue(FormatUtil.convertNumberToHangul("9172756547862"), FormatUtil.convertNumberToHangul("9172756547862").equals("구조일천칠백이십칠억오천육백오십사만칠천팔백육십이"));
    assertTrue(FormatUtil.convertNumberToHangul("91727565478625"), FormatUtil.convertNumberToHangul("91727565478625").equals("구십일조칠천이백칠십오억육천오백사십칠만팔천육백이십오"));
    assertTrue(FormatUtil.convertNumberToHangul("917275654786251"), FormatUtil.convertNumberToHangul("917275654786251").equals("구백일십칠조이천칠백오십육억오천사백칠십팔만육천이백오십일"));
    assertTrue(FormatUtil.convertNumberToHangul("9172756547862510"), FormatUtil.convertNumberToHangul("9172756547862510").equals("구천일백칠십이조칠천오백육십오억사천칠백팔십육만이천오백일십"));
    assertTrue(FormatUtil.convertNumberToHangul("2"), FormatUtil.convertNumberToHangul("2").equals("이"));
    assertTrue(FormatUtil.convertNumberToHangul("23"), FormatUtil.convertNumberToHangul("23").equals("이십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("231"), FormatUtil.convertNumberToHangul("231").equals("이백삼십일"));
    assertTrue(FormatUtil.convertNumberToHangul("2313"), FormatUtil.convertNumberToHangul("2313").equals("이천삼백일십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("23139"), FormatUtil.convertNumberToHangul("23139").equals("이만삼천일백삼십구"));
    assertTrue(FormatUtil.convertNumberToHangul("231393"), FormatUtil.convertNumberToHangul("231393").equals("이십삼만일천삼백구십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("2313937"), FormatUtil.convertNumberToHangul("2313937").equals("이백삼십일만삼천구백삼십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("23139374"), FormatUtil.convertNumberToHangul("23139374").equals("이천삼백일십삼만구천삼백칠십사"));
    assertTrue(FormatUtil.convertNumberToHangul("231393742"), FormatUtil.convertNumberToHangul("231393742").equals("이억삼천일백삼십구만삼천칠백사십이"));
    assertTrue(FormatUtil.convertNumberToHangul("2313937424"), FormatUtil.convertNumberToHangul("2313937424").equals("이십삼억일천삼백구십삼만칠천사백이십사"));
    assertTrue(FormatUtil.convertNumberToHangul("23139374247"), FormatUtil.convertNumberToHangul("23139374247").equals("이백삼십일억삼천구백삼십칠만사천이백사십칠"));
    assertTrue(FormatUtil.convertNumberToHangul("231393742474"), FormatUtil.convertNumberToHangul("231393742474").equals("이천삼백일십삼억구천삼백칠십사만이천사백칠십사"));
    assertTrue(FormatUtil.convertNumberToHangul("2313937424745"), FormatUtil.convertNumberToHangul("2313937424745").equals("이조삼천일백삼십구억삼천칠백사십이만사천칠백사십오"));
    assertTrue(FormatUtil.convertNumberToHangul("23139374247453"), FormatUtil.convertNumberToHangul("23139374247453").equals("이십삼조일천삼백구십삼억칠천사백이십사만칠천사백오십삼"));
    assertTrue(FormatUtil.convertNumberToHangul("231393742474532"), FormatUtil.convertNumberToHangul("231393742474532").equals("이백삼십일조삼천구백삼십칠억사천이백사십칠만사천오백삼십이"));
    assertTrue(FormatUtil.convertNumberToHangul("2313937424745320"), FormatUtil.convertNumberToHangul("2313937424745320").equals("이천삼백일십삼조구천삼백칠십사억이천사백칠십사만오천삼백이십"));
  }
}
반응형
반응형

* yum 을 통해 기본 MariaDB가 설치되어 있는 상태에서 추가로 MariaDB를 1개 더 설치하는 과정입니다.

 

설치버전 : MariaDB 10.5.13-GA

다운로드 URL :

https://mariadb.org/download/?t=mariadb&p=mariadb&r=10.5.13&os=Linux&cpu=x86_64&i=systemd&m=yongbok

 

 

1. basedir 생성 후 다운받은 tar.gz 파일을 압축을 풉니다.

# mkdir /opt/mysql-10.5  <-- 여기를 mariadb 기본 디렉터리로 쓸겁니다. (위치 및 파일명 내 맘대로 정함)

# chown mysql.mysql /opt/mysql-10.5

# cd /opt/mysql-10.5

# tar -xvzf mariadb-10.5.13-linux-systemd-x86_64.tar.gz

# mv mariadb-10.5.13-linux-systemd-x86_64/* .

# rm -rf mariadb-10.5.13-linux-systemd-x86_64*

 

2. datadir 생성 

# mkdir /var/lib/mysql-10.5 <-- 여기를 data 를 저장할 디렉터리로 쓸겁니다. (위치 및 파일명 내 맘대로 정함)

# chown mysql.mysql /var/lib/mysql-10.5

 

3. cnf 설정파일 생성

# vi /etc/my-10.5.cnf <-- 기본 설정파일과 분리된 신규 설정파일. (위치 및 파일명 내 맘대로 정함)

 

[mysqld]

init_connect=SET collation_connection=utf8_general_ci

init_connect=SET NAMES utf8

character-set-server=utf8

collation-server=utf8_general_ci

table_open_cache=1024

max_connections=2048

max_user_connections=500

max_connect_errors=10000

wait_timeout=300

query_cache_type=1

query_cache_size=128M

query_cache_limit=5M

slow_query_log

long_query_time=3

max_allowed_packet=16M

sort_buffer_size=2M

skip-name-resolve

symbolic-links=0

port=3307 <-- 기존 db가 3306 쓰고 있어서 3307 포트 사용

basedir=/opt/mysql-10.5

datadir=/var/lib/mysql-10.5

socket=/var/lib/mysql-10.5/mysql.sock

 

[mysql]

default-character-set=utf8

socket=/var/lib/mysql-10.5/mysql.sock

 

[client]
socket=/var/lib/mysql-10.5/mysql.sock
port=3307


[mysqld_safe]
socket=/var/lib/mysql-10.5/mysql.sock

 

4. mariadb install

[실행]

# cd /opt/mysql-10.5

# scripts/mysql_install_db --defaults-file=/etc/my-10.5.cnf --user=mysql

 

[결과]

Installing MariaDB/MySQL system tables in '/var/lib/mysql-10.5' ...

OK

 

To start mysqld at boot time you have to copy

support-files/mysql.server to the right place for your system



Two all-privilege accounts were created.

One is root@localhost, it has no password, but you need to

be system 'root' user to connect. Use, for example, sudo mysql

The second is mysql@localhost, it has no password either, but

you need to be the system 'mysql' user to connect.

After connecting you can set the password, if you would need to be

able to connect as any of these users with a password and without sudo

 

See the MariaDB Knowledgebase at https://mariadb.com/kb or the

MySQL manual for more instructions.

 

You can start the MariaDB daemon with:

cd '/opt/mysql-10.5' ; /opt/mysql-10.5/bin/mysqld_safe --datadir='/var/lib/mysql-10.5'

 

You can test the MariaDB daemon with mysql-test-run.pl

cd '/opt/mysql-10.5/mysql-test' ; perl mysql-test-run.pl

 

Please report any problems at https://mariadb.org/jira

 

The latest information about MariaDB is available at https://mariadb.org/.

You can find additional information about the MySQL part at:

https://dev.mysql.com

Consider joining MariaDB's strong and vibrant community:

https://mariadb.org/get-involved/



5. 시스템 재시작 시 자동 실행 되도록 서비스 등록.

# vi /etc/systemd/system/mariadbd-10.5.service

 

[Unit]

Description=MariaDB 10.5.13 database server

After=network.target

After=syslog.target

 

[Install]

WantedBy=multi-user.target

Alias=mariadbd-10.5.service

 

[Service]

 

User=mysql

Group=mysql

 

# Execute pre and post scripts as root

PermissionsStartOnly=true

 

# Needed to create system tables etc.

#ExecStartPre=

 

# Start main service

ExecStart=/opt/mysql-10.5/bin/mariadbd-safe --defaults-file=/etc/my-10.5.cnf

 

# Don't signal startup success before a ping works

#ExecStartPost=

 

# Give up if ping don't get an answer

TimeoutSec=300

PrivateTmp=false

 

6. 서비스 활성 화 및 재시작 그리고 상태 확인

]# systemctl list-unit-files|grep mari

]# systemctl enable mariadb-10.5

 

] # systemctl daemon-reload

] # systemctl status mariadb-10.5

 

7. root 암호 설정하기

] # mysqladmin --defaults-file=/etc/my-10.5.cnf -u root password 

 

** 유의사항.

- make 부터해서 새로 컴파일을 한게 아니라서..

- 새로 설치한 mariadb 관련 명령어 실행시 항상 "--defaults-file=/etc/my-10.5.cnf" 옵션을 넣어 주어야만 한다.

 

반응형
반응형

반응형
반응형

url : https://about.gitlab.com/install/#centos-7

 

Download and install GitLab

Learn about the various GitLab installation packages and downloads for Ubuntu, Debian, Docker, Google Cloud, and many more.

about.gitlab.com

Step 1.

sudo yum install -y curl policycoreutils-python openssh-server perl

Step 2.

sudo yum install postfix

Step 3.

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash

Step 4.

sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ee

Step 5. root 계정 패스워드 확인.

cat /etc/gitlab/initial_root_password

Step 6. Start and Stop

# Start all GitLab components
sudo gitlab-ctl start
 
# Stop all GitLab components
sudo gitlab-ctl stop
 
# Restart all GitLab components
sudo gitlab-ctl restart
반응형

+ Recent posts