pixabay https://cdn.pixabay.com/photo/2019/06/24/09/10/faulty-4295549_1280.jpg 重新安装windows后一堆问题在困扰着我。其中最烦人的是,TestNG 运行结果在Eclipse显示乱码。控制台和主代码页面都没问题,为什么呢? ##### Code: ``` @Test(dataProvider = "normalList") public void CASE_03_CheckList(List<Object> exp, List<Object> res) { Assert.assertTrue(aa.isContains(exp, res), aa.message(exp, res)); Response response = given().get(mockApi_ListRes); aa.AssertResBody(exp, response); } @DataProvider(name = "normalList") public List<?>[][] normalList() { return new List<?>[][]{ {Arrays.asList("포함 OR a", "list"), Arrays.asList("스트링 포함","list", "s")}, {Arrays.asList("eng OR sh", "list"), Arrays.asList("English", "list", "s")}, {Arrays.asList("e s", "list"), Arrays.asList("space space", "list", "s")}, {Arrays.asList("!@#$%^&*()", "list"), Arrays.asList("!@#$%^&*()", "list", "s")}, {Arrays.asList("23", "list"), Arrays.asList("123, 4444", "list", "s")}, {Arrays.asList("sp AND ce", "list"), Arrays.asList("space space", "list", "s")}, {Arrays.asList("sp AND ce", "list"), Arrays.asList("space space", "list", "s")}, {Arrays.asList(2, 1), Arrays.asList(1, 2, 3)}, {Arrays.asList(false, true), Arrays.asList(true, false, null)}, {Arrays.asList(false, null), Arrays.asList(null, false, true)}, }; } ``` ##### Console: ``` [RemoteTestNG] detected TestNG version 7.3.0 PASSED: CASE_03_CheckList([포함 OR a, list], [스트링 포함, list, s]) PASSED: CASE_03_CheckList([eng OR sh, list], [English, list, s]) PASSED: CASE_03_CheckList([e s, list], [space space, list, s]) PASSED: CASE_03_CheckList([!@#$%^&*(), list], [!@#$%^&*(), list, s]) PASSED: CASE_03_CheckList([23, list], [123, 4444, list, s]) PASSED: CASE_03_CheckList([sp AND ce, list], [space space, list, s]) PASSED: CASE_03_CheckList([sp AND ce, list], [space space, list, s]) PASSED: CASE_03_CheckList([2, 1], [1, 2, 3]) PASSED: CASE_03_CheckList([false, true], [true, false, null]) PASSED: CASE_03_CheckList([false, null], [null, false, true]) ``` *** 记得几年前也发生过这个问题,并且好不容易解决了,但... 忘了怎么改了,哭笑不得~ 数字时代无法相信记忆力,数字化并存到区块链才是正道。 解决方法很简单,在Eclipse安装目录下的eclipse.ini文件尾部加上`-Dfile.encoding=UTF-8`即可。  ***  *** **[Cookie 😅]** 参考: https://blog.csdn.net/sinat_28734889/article/details/52300070
author | june0620 |
---|---|
permlink | java-23-troubleshooting-5-testng-eclipse |
category | hive-105017 |
json_metadata | {"app":"peakd/2020.09.5","format":"markdown","tags":["cn","dblog","dev","java","elipse","testng","whalepower","palnet"],"users":["Test","DataProvider"],"links":["https://blog.csdn.net/sinat_28734889/article/details/52300070"],"image":["https://cdn.pixabay.com/photo/2019/06/24/09/10/faulty-4295549_1280.jpg","https://cdn.steemitimages.com/DQmWfYxp59rsgExDQ8zv1A8FDbVkSaACuTWJXdquH3qMdBJ/image.png","https://cdn.steemitimages.com/DQmTpHvJsq9q2cWzGorbTMuzYriWMmVmCWgsbbmmjnEfqbD/image.png"]} |
created | 2020-10-05 07:13:15 |
last_update | 2020-10-05 07:13:15 |
depth | 0 |
children | 5 |
last_payout | 2020-10-12 07:13:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 3.715 HBD |
curator_payout_value | 3.476 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,416 |
author_reputation | 118,592,211,436,406 |
root_title | "[JAVA #23] [Troubleshooting #5] TestNG 运行结果在Eclipse显示乱码" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 99,970,773 |
net_rshares | 28,693,146,098,710 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
team | 0 | 153,220,698,912 | 20% | ||
magicmonk | 0 | 2,633,204,883,177 | 100% | ||
sweetsssj | 0 | 13,993,661,074,078 | 33% | ||
tumutanzi | 0 | 769,754,062 | 50% | ||
coldhair | 0 | 892,445,338 | 50% | ||
shenchensucc | 0 | 16,841,445,165 | 30% | ||
khaiyoui | 0 | 284,867,926,416 | 25% | ||
tipu | 0 | 3,967,165,130,335 | 10% | ||
kimzwarch | 0 | 10,387,205,631 | 4% | ||
june0620 | 0 | 574,312,213,971 | 100% | ||
fatman | 0 | 33,702,620,958 | 17.16% | ||
mawit07 | 0 | 2,227,854,707 | 50% | ||
minloulou | 0 | 1,470,783,520 | 10% | ||
lindalex | 0 | 580,349,302 | 50% | ||
cnbuddy | 0 | 925,967,169,314 | 100% | ||
itchyfeetdonica | 0 | 187,197,445,860 | 50% | ||
dudream | 0 | 57,945,901,145 | 100% | ||
bartheek | 0 | 14,951,425,363 | 5% | ||
bji1203 | 0 | 100,795,777,895 | 100% | ||
suhunter | 0 | 944,720,970 | 50% | ||
calist | 0 | 106,232,527 | 100% | ||
udabeu | 0 | 10,521,429,273 | 30% | ||
jsj1215 | 0 | 0 | 100% | ||
yasu | 0 | 34,763,845 | 100% | ||
happy-soul | 0 | 11,034,048,731 | 5% | ||
donekim | 0 | 2,679,672,316 | 100% | ||
lucky2015 | 0 | 4,026,007,907 | 100% | ||
parkname | 0 | 235,617,516,858 | 100% | ||
payroll | 0 | 87,909,807,818 | 2% | ||
julialee66 | 0 | 3,024,568,022,765 | 25% | ||
andrewma | 0 | 11,220,459,265 | 50% | ||
jancharlest | 0 | 10,104,693,645 | 10% | ||
longer | 0 | 1,215,717,286 | 2.5% | ||
coder-bts | 0 | 4,528,711,224 | 50% | ||
melaniewang | 0 | 8,071,171,624 | 50% | ||
lupafilotaxia | 0 | 64,431,587,772 | 50% | ||
changxiu | 0 | 5,053,333,843 | 50% | ||
laissez-faire | 0 | 93,603,709 | 100% | ||
cherryzz | 0 | 163,019,662,011 | 50% | ||
forecasteem | 0 | 44,459,574,297 | 100% | ||
skoroklad | 0 | 700,442,052 | 100% | ||
dam4ik2 | 0 | 698,416,668 | 100% | ||
starrouge | 0 | 1,039,036,671 | 50% | ||
wherein | 0 | 445,971,421,729 | 100% | ||
steemfriends | 0 | 12,272,560,978 | 100% | ||
zerofive | 0 | 824,655,947 | 50% | ||
jacuzzi | 0 | 1,972,603,835 | 5% | ||
tagalong | 0 | 1,347,574,909 | 100% | ||
cnstm | 0 | 275,473,552,054 | 100% | ||
ctime | 0 | 871,429,473,825 | 5% | ||
lianjingmedia | 0 | 991,812,714 | 100% | ||
mia-cc | 0 | 1,240,396,122 | 10% | ||
cecilian | 0 | 2,488,205,157 | 33% | ||
kryptogames | 0 | 49,805,448,315 | 10% | ||
tina3721 | 0 | 4,865,573,237 | 50% | ||
andyhsia | 0 | 15,828,420,502 | 100% | ||
minigame | 0 | 344,153,256,498 | 100% | ||
cryptogambit | 0 | 1,441,405,033 | 7.5% | ||
bilpcoinrecords | 0 | 857,879,928 | 16.5% | ||
dappstats | 0 | 3,640,633,403 | 15% | ||
real3earch | 0 | 1,823,324,117 | 100% | ||
toni.pal | 0 | 0 | 0.73% | ||
fengchao | 0 | 2,541,200,882 | 2% | ||
logicforce | 0 | 1,935,961,299 | 50% |
好像很久没见到俊俊了🤔 你浪到哪里去了🤭 @tipu curate
author | annepink |
---|---|
permlink | re-june0620-2020105t194023406z |
category | hive-105017 |
json_metadata | {"tags":["cn","dblog","dev","java","elipse","testng","whalepower","palnet"],"app":"ecency/3.0.7-vision","format":"markdown+html"} |
created | 2020-10-05 11:40:27 |
last_update | 2020-10-05 11:40:27 |
depth | 1 |
children | 2 |
last_payout | 2020-10-12 11:40:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 34 |
author_reputation | 1,036,620,555,274,856 |
root_title | "[JAVA #23] [Troubleshooting #5] TestNG 运行结果在Eclipse显示乱码" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 99,973,551 |
net_rshares | 0 |
好久不见哦,萍萍 😄 最近很少来区块链了~ 区块链不争气心累 哈哈~
author | june0620 |
---|---|
permlink | re-annepink-qhq9c7 |
category | hive-105017 |
json_metadata | {"tags":["hive-105017"],"app":"peakd/2020.09.5"} |
created | 2020-10-05 12:00:12 |
last_update | 2020-10-06 03:16:12 |
depth | 2 |
children | 0 |
last_payout | 2020-10-12 12:00:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 36 |
author_reputation | 118,592,211,436,406 |
root_title | "[JAVA #23] [Troubleshooting #5] TestNG 运行结果在Eclipse显示乱码" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 99,973,814 |
net_rshares | 0 |
<a href="https://tipu.online/hive_curator?annepink" target="_blank">Upvoted 👌</a> (Mana: 30/40) <a href="https://peakd.com/hive/@reward.app/reward-app-quick-guide-updated" target="_blank">Liquid rewards</a>.
author | tipu |
---|---|
permlink | re-re-june0620-2020105t194023406z-20201005t114039 |
category | hive-105017 |
json_metadata | "" |
created | 2020-10-05 11:40:42 |
last_update | 2020-10-05 11:40:42 |
depth | 2 |
children | 0 |
last_payout | 2020-10-12 11:40:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 216 |
author_reputation | 55,954,426,099,732 |
root_title | "[JAVA #23] [Troubleshooting #5] TestNG 运行结果在Eclipse显示乱码" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 99,973,556 |
net_rshares | 0 |
嗯 休息调整一下也好💕
author | annepink |
---|---|
permlink | re-june0620-2020105t213438815z |
category | hive-105017 |
json_metadata | {"tags":["cn","dblog","dev","java","elipse","testng","whalepower","palnet"],"app":"ecency/3.0.7-vision","format":"markdown+html"} |
created | 2020-10-05 13:34:54 |
last_update | 2020-10-05 13:34:54 |
depth | 1 |
children | 0 |
last_payout | 2020-10-12 13:34:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 11 |
author_reputation | 1,036,620,555,274,856 |
root_title | "[JAVA #23] [Troubleshooting #5] TestNG 运行结果在Eclipse显示乱码" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 99,975,016 |
net_rshares | 0 |
Congratulations @june0620! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) : <table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@june0620/upvotes.png?202101021226"></td><td>You distributed more than 21000 upvotes. Your next target is to reach 22000 upvotes.</td></tr> </table> <sub>_You can view your badges on [your board](https://hivebuzz.me/@june0620) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> **Do not miss the last post from @hivebuzz:** <table><tr><td><a href="/hivebuzz/@hivebuzz/update-202101"><img src="https://images.hive.blog/64x128/https://i.imgur.com/GZV4AF7.png"></a></td><td><a href="/hivebuzz/@hivebuzz/update-202101">Happy New Year - Project Activity Update</a></td></tr><tr><td><a href="/hivebuzz/@hivebuzz/pud-202101"><img src="https://images.hive.blog/64x128/https://i.imgur.com/805FIIt.jpg"></a></td><td><a href="/hivebuzz/@hivebuzz/pud-202101">First Hive Power Up Day of 2021 - Get a Hive Power delegation</a></td></tr></table>
author | hivebuzz |
---|---|
permlink | hivebuzz-notify-june0620-20210102t123450000z |
category | hive-105017 |
json_metadata | {"image":["http://hivebuzz.me/notify.t6.png"]} |
created | 2021-01-02 12:34:51 |
last_update | 2021-01-02 12:34:51 |
depth | 1 |
children | 0 |
last_payout | 2021-01-09 12:34:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,185 |
author_reputation | 369,434,696,085,525 |
root_title | "[JAVA #23] [Troubleshooting #5] TestNG 运行结果在Eclipse显示乱码" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 101,185,318 |
net_rshares | 0 |