Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create this file in tests folder and not the production folder

Code Block
languagejava
package com.celestial.mockito.filetodb;

import  public  interface MyFile
    {
    java.nio.charset.Charset;
import java.nio.file.Path;
import java.util.List;

public interface MyFile
{
   public abstractList<String> IEnumerable<string> ReadLinesreadAllLines(stringPath path, Charset cs); 
   }
}

In our test, we can now mock this interface and set the expectations for the required method

...