// Path: layout/src/test/java/com/vlkan/log4j2/logstash/layout/ObjectMapperFixture.java
// public enum ObjectMapperFixture {;
// 
//     public static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
// 
// }


import com.fasterxml.jackson.core.JsonGenerator;
import com.vlkan.log4j2.logstash.layout.ObjectMapperFixture;
import org.assertj.core.api.Assertions;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.LinkedHashMap;
import java.util.Map;
/*
 * Copyright 2017-2020 Volkan Yazıcı
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permits and
 * limitations under the License.
 */

package com.vlkan.log4j2.logstash.layout.util;



public class JsonGeneratorsTest {

    private static final class WriteDoubleTestCase {

        private final long integralPart;

        private final int fractionalPart;

        private WriteDoubleTestCase(long integralPart, int fractionalPart) {
            this.integralPart = integralPart;
            this.fractionalPart = fractionalPart;
        }

        private String write() throws IOException {
            try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
// Path: layout/src/test/java/com/vlkan/log4j2/logstash/layout/ObjectMapperFixture.java
// public enum ObjectMapperFixture {;
// 
//     public static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
// 
// }


// Path: layout/src/test/java/com/vlkan/log4j2/logstash/layout/util/JsonGeneratorsTest.java
import com.fasterxml.jackson.core.JsonGenerator;
import com.vlkan.log4j2.logstash.layout.ObjectMapperFixture;
import org.assertj.core.api.Assertions;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.LinkedHashMap;
import java.util.Map;

/*
 * Copyright 2017-2020 Volkan Yazıcı
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permits and
 * limitations under the License.
 */

package com.vlkan.log4j2.logstash.layout.util;



public class JsonGeneratorsTest {

    private static final class WriteDoubleTestCase {

        private final long integralPart;

        private final int fractionalPart;

        private WriteDoubleTestCase(long integralPart, int fractionalPart) {
            this.integralPart = integralPart;
            this.fractionalPart = fractionalPart;
        }

        private String write() throws IOException {
            try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
                 JsonGenerator jsonGenerator = ObjectMapperFixture