Skip to content

Commit

Permalink
Add failing test
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Dec 11, 2024
1 parent fcfc513 commit 132c6a2
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.opensearch.client.opensearch._types.aggregations;

import org.junit.Test;
import org.opensearch.client.opensearch.model.ModelTestCase;

public class FilterAggregateTest extends ModelTestCase {
@Test
public void serializesNestedAggregates() {
String json = "{\"sum#l2_result\":{\"value\":1.0},\"doc_count\":1}";
FilterAggregate aggregate = fromJson(json, FilterAggregate._DESERIALIZER);
assertEquals(json, toJson(aggregate));
}
}

0 comments on commit 132c6a2

Please sign in to comment.