Convert jmockit to mockito

88 views Asked by At

I have a test class where I am using jmockit with the sample code

 public class Test {
    
      @Before
      public void init() {
        mockClient(true, true);
      }
    
      private void mockClient(boolean arg1, boolean arg2) {
        new MockUp<Client>() {
          @Mock
          public ClientTO clentDetail(Map<String, String> Data) {
            ClientTO clientTO;
            ..
            do {
              something
                  .
            }.
    
            return clientTO;
          }
        };
      }
    }

the actual clentDetail implementation different from the above code

public class Client(){

    public ClientTO clentDetail(Map<String, String> Data) {
        ClientTO clientTO;
        ..
        do something
        ..

        return clientTO;
      }
}

i want to convert this jmockit to mockito as part of java17 upgrade, how can we do it?

can someone please help me in this.

Thanks.

0

There are 0 answers