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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e4f6-2c3f5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e4f6-2c3f5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?