How to quickly test the effect of springDATA statements

for example, in the process of writing java, I"m not sure if the following statement findAllByStatusEquals meets my needs and what data is returned.

however, I don"t want to write some column code, such as the controller, and then request some columns through other interfaces.

excuse me, is there any way to test the effect of this statement? If you write here, you can test its results?

@Repository
public interface ProjectionRepo extends BaseRepository<Projection>{

    List<Projection> findAllByStatusEquals(int status);
  }
Mar.08,2022

  1. write unit test
  2. write a main method to get ApplicationContext directly getBean and then run
Menu