Skip to content

Commit

Permalink
checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
auden-woolfson committed Dec 16, 2024
1 parent 532ed0f commit 56e1235
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.facebook.presto.client.QueryResults;
import com.facebook.presto.server.testing.TestingPrestoServer;
import com.facebook.presto.tpch.TpchPlugin;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -118,8 +117,8 @@ public void testGetAllQueryStateInfos()
}

@Test
public void testGetQueryStateInfosForUser(){

public void testGetQueryStateInfosForUser()
{
List<QueryStateInfo> infos = client.execute(
prepareGet().setUri(server.resolve("/v1/queryState?user=user2")).build(),
createJsonResponseHandler(listJsonCodec(QueryStateInfo.class)));
Expand Down Expand Up @@ -156,15 +155,15 @@ public void testQueryStateInfoRegexMatching()
.setUri(server.resolve("/v1/queryState?user=user%5Cd")) // Encoded user\d
.build(),
createJsonResponseHandler(listJsonCodec(QueryStateInfo.class)));
Assert.assertEquals(infos.size(), 2);
assertEquals(infos.size(), 2);

// Match strings ending in a digit
infos = client.execute(
prepareGet()
.setUri(server.resolve("/v1/queryState?user=%2E%2A%5Cd")) // Encoded .*\d
.build(),
createJsonResponseHandler(listJsonCodec(QueryStateInfo.class)));
Assert.assertEquals(infos.size(), 3);
assertEquals(infos.size(), 3);
}

@Test(expectedExceptions = {UnexpectedResponseException.class}, expectedExceptionsMessageRegExp = "Expected response code .*, but was 404")
Expand Down

0 comments on commit 56e1235

Please sign in to comment.