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 d347bdd
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/

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 d347bdd

Please sign in to comment.