[Problem]
testSerializeExtend add an item to a static mapper,
and testDeserializeExtend read that item from that static mapper.
So if testDeserializeExtend runs before testSerializeExtend,
testDeserializeExtend will fail.
@Ignore testSerializeExtend can stably reproduce this issue.
[Solution]
Add that item to the static mapper in @BeforeClass method
(Even though using static variables in unit tests is a bad practice)
* Adapt list service v1 open API
* Adapt push all logic
* Fix NPE if register Instance without metadata for v1.x.
* Add some comment for Metadata event
* Fix can't auto register instance after auto deregister when different service with same ip port.
* use instance id get instance metadata
* Fix Disconnection can't notify to naming module.
* Support subscribe specified cluster instance for 1.x
* Fix 2.0 client subscribe service can't be notify problem
* Fix only can search the first service problem
* Fix auto clean empty service can't work problem
* Add the function of automatically clearing empty services
* Fix checkstyle issue
* Delete the remove event of the service
* Fix checkstyle issue
* Add some task configurations for cleaning
* Adjust the configuration to the Naming module
* Naming global config unified use EnvUtils tool
* Add the function of automatically clearing empty services
* Fix checkstyle issue
* Delete the remove event of the service
* Fix checkstyle issue
* Add some task configurations for cleaning
* Adjust the configuration to the Naming module
* for #4311,Fixed Derby data source related SQL LIMIT exception.
* Revert "for #4311,Fixed Derby data source related SQL LIMIT exception."
This reverts commit 49188f14
* fix#4333.
* Remove case conversion.
* fix nacos.core.protocol.raft.data.read_index_type=ReadOnlyLeaseBased isn't effect and enhance log hint
* define ReadOnlyOption param name just by self
* fix spring.config.location is nullapplication.properties when -Dspring.config.location is not set in env
* fix wrong path when -Dspring.config.location not set
* modify default file resource method name
* fix "/" magic value
* change the way of get file
* not judge pathSplit by self, use Paths.get(a, b);
* when spring.config.location is not set, use {nacos.home}/conf/application.properties to cover it.
* refactor code
* code quality enhance
* just use two level to load conf. {spring.config.location}/application.properties -> classpath:/application.properties
* code clean
* just inject environment in StartingSpringApplicationRunListener
* make nacosStartingListener is decoupling with springApplicationRunListener.
* add api doc
* refactor. transfer nacos listeners to SpringApplicationRunListener.
* remove unuseful import
* add doc info