As the connector should support more and more features from mock server, the needed parameters on some methods (mostly the andReturn) need to be added. For that a new idea comes up to build some struct classes for the different responses. To handle that different structs easily, that classes should have a build method that returns the array that need to build a json from that can be send to the mock server.
The MockServerExpectation class also should extended with that method. On this way the ExpectationBuilder is completly obsolate.
As the connector should support more and more features from mock server, the needed parameters on some methods (mostly the andReturn) need to be added. For that a new idea comes up to build some struct classes for the different responses. To handle that different structs easily, that classes should have a
buildmethod that returns the array that need to build a json from that can be send to the mock server.The MockServerExpectation class also should extended with that method. On this way the ExpectationBuilder is completly obsolate.