TestNG is your updated test framework for junit. We are going to utilize testng.xml for invoking test suites. This is helpful when we are going to use CI ahead.
In the root folder of your project create an xml file with the name testng.xml. Note that name can be different as well, but for convenience its used as "testng" everywhere.
Below is the simple code for testng.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Smoke"> //name of the suite
<test name="Test1"> //name of the test
<classes>
<class name="test.SearchTest">
<methods>
<include name="searchTest"/>
</methods>
</class>
</classes>
</test>
</suite>