shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

To optimize the soul test class

Open yu199195 opened this issue 5 years ago • 15 comments

Hi all guys

Over the past month,The community has done a lot of work on test cases. now, we shoud optimize the soul test class.

optimize rules:

  1. assertEquals() must be Modified to assertThat()
  2. must use inline import static class in test case , just like import static org.mockito.Mockito.mock;, import static org.junit.Assert.assertTrue;
  3. Delete unnecessary blank lines
  4. Optimize the java doc
  5. There should be no obvious yellow warning of IDEA
  6. remove final variable Inside the method
  7. use constants for all string variables
  8. English words should be expressed clearly. for example : setUp maybe to setup
  9. all test class maybe add final modifier

Task List :

  • [ ] soul-admin @Trafalgar-YuI
  • [x] soul-boostrap @sccauxupei
  • [x] soul-client @HoldDie
  • [ ] soul-common @magicalxiaochen
  • [x] soul-metrics @xxl115
  • [ ] soul-plugin @Redick01
  • [ ] soul-spi @abysscat-yj
  • [ ] soul-spring-boot-starter @strawberry-crisis
  • [x] soul-sync-data-center @vinceDa
  • [ ] soul-web @FocusZhouGD

yu199195 avatar Jan 07 '21 08:01 yu199195

get soul-admin

HessTina-YuI avatar Jan 07 '21 08:01 HessTina-YuI

get soul-common

magicalxiaochen avatar Jan 07 '21 08:01 magicalxiaochen

get soul-client

Asxing avatar Jan 07 '21 08:01 Asxing

assign soul-spring-boot-starter to me plz

strawberry-crisis avatar Jan 07 '21 08:01 strawberry-crisis

get soul-spi

abysscat-yj avatar Jan 07 '21 08:01 abysscat-yj

get soul-sync-data-center

lmhmhl avatar Jan 07 '21 08:01 lmhmhl

get soul-web

FocusZhouGD avatar Jan 07 '21 08:01 FocusZhouGD

get soul-plugin

Redick01 avatar Jan 07 '21 08:01 Redick01

soul-metrics

xxl115 avatar Jan 07 '21 08:01 xxl115

get soul-boostrap

branchen avatar Jan 07 '21 08:01 branchen

get soul-boostrap

MasterPXu avatar Jan 07 '21 08:01 MasterPXu

?

lmhmhl avatar Jan 07 '21 09:01 lmhmhl

?

看岔了 我删了

vinceDa avatar Jan 07 '21 09:01 vinceDa

?

看岔了 我删了

If u still wanna do it, we can optimize the soul test class in soul-sync-data-center together, I can do the first 2 model http and nacos, the rest two is yours.

lmhmhl avatar Jan 07 '21 12:01 lmhmhl

?

看岔了 我删了

If u still wanna do it, we can optimize the soul test class in soul-sync-data-center together, I can do the first 2 model http and nacos, the rest two is yours.

NoNoNo, it's yours, my bad; i can do this next time, thank you!

vinceDa avatar Jan 08 '21 01:01 vinceDa