Skip to content
Advertisement

Tag: methods

Using attributes of one class in another class

I am trying to move the assertThat method from Authentication class to the BDDStyledMethod class but the current code will generate the following error “‘Creds(java.lang.String)’ in ‘steps.Authentication’ cannot be applied to ‘()'” How do i correct my code so that the assertThat method works in the BDDStyledMethod class ? Answer The problem is with the Creds method. It is not

Advertisement