Код: Выделить всё
enum ProductTypes {
Car, //required by consumer
Plane, //required by consumer
Train //new enum member
} // passes the contract test
Код: Выделить всё
enum ProductTypes {
//car was removed by the provider
Plane
} // should fail the contract test
В настоящее время я не вижу ни одного Matcher, способного это сделать.
Можно ли это исправить с помощью «Плагинов»?
Есть ли другой способ отразить это в контракте тесты?
Я просмотрел Regex, но он не соответствует критериям.
Подробнее здесь: https://stackoverflow.com/questions/783 ... num-member