Hey Guys

i'm new for selenium, i used the follow code in my test
,and my question is after selenium execute these code , it closed the browser automatically, so what should i do to keep the browser open, thank you very much for your reply.

package com.example.tests;
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.Selenium;

import junit.framework.TestCase;

public class GoogleTest extends TestCase {
private Selenium selenium;

public void setUp() throws Exception {
String url = "http://www.google.com";
selenium = new DefaultSelenium("localhost", 4444, "*chrome", url); //4444 is default server port


protected void tearDown() throws Exception {

public void testGoogle() throws Throwable {
assertEquals("Google", selenium.getTitle());
selenium.type("q", "Selenium OpenQA");
assertEquals("Selenium OpenQA", selenium.getValue("q"));
assertEquals("Selenium OpenQA - Google Search", selenium.getTitle());