mirror of
https://github.com/microsoft/HybridRow.git
synced 2026-01-19 17:33:13 +00:00
Test update
This commit is contained in:
@@ -15,7 +15,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
public abstract class LayoutTypePrimitive<T> extends LayoutType implements ILayoutType {
|
||||
/**
|
||||
* Initializes a new instance of the {@link LayoutTypePrimitive<T>} class.
|
||||
* Initializes a new instance of the {@link LayoutTypePrimitive} class.
|
||||
*
|
||||
* @param code
|
||||
* @param immutable
|
||||
@@ -26,7 +26,7 @@ public abstract class LayoutTypePrimitive<T> extends LayoutType implements ILayo
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new instance of the {@link LayoutTypePrimitive<T>} class.
|
||||
* Initializes a new instance of the {@link LayoutTypePrimitive} class.
|
||||
*
|
||||
* @param code
|
||||
* @param size
|
||||
|
||||
@@ -20,6 +20,7 @@ import static org.testng.Assert.assertSame;
|
||||
import static org.testng.Assert.assertThrows;
|
||||
import static org.testng.Assert.assertTrue;
|
||||
|
||||
@Test(groups = "unit")
|
||||
public class Utf8StringTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -5,6 +5,7 @@ package com.azure.data.cosmos.core;
|
||||
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = "unit")
|
||||
public class UtfAnyStringTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -25,6 +25,7 @@ import static org.testng.Assert.assertEquals;
|
||||
* Console.WriteLine($"new DateTimeItem(new byte[] {{ (byte) {string.Join(", (byte) ", buffer )} }}, OffsetDateTime.parse(\"{value.ToString("o")}\"))");
|
||||
* }
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class DateTimeCodecTest {
|
||||
|
||||
@Test(dataProvider = "dateTimeDataProvider")
|
||||
|
||||
@@ -27,6 +27,7 @@ import static org.testng.Assert.assertEquals;
|
||||
* {value.ToString()}\"))");
|
||||
* }
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class DecimalCodecTest {
|
||||
|
||||
@Test(dataProvider = "decimalDataProvider")
|
||||
|
||||
@@ -25,6 +25,7 @@ import static org.testng.Assert.assertEquals;
|
||||
* Console.WriteLine($"new GuidItem(new byte[] {{ (byte) {string.Join(", (byte) ", buffer )} }}, UUID.fromString(\"{value.ToString()}\"))");
|
||||
* }
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class GuidCodecTest {
|
||||
|
||||
@Test(dataProvider = "guidDataProvider")
|
||||
|
||||
@@ -10,11 +10,12 @@ import java.nio.file.Paths;
|
||||
|
||||
import static org.testng.Assert.*;
|
||||
|
||||
@Test(groups = "unit")
|
||||
public class SystemSchemaTest {
|
||||
|
||||
private static final Path SchemaFile = Paths.get("data", "CustomerSchema.json");
|
||||
|
||||
@Test
|
||||
@Test(enabled = false)
|
||||
public void testLoadSchema() {
|
||||
|
||||
final LayoutResolver layoutResolver = SystemSchema.layoutResolver();
|
||||
|
||||
16
java/src/test/resources/log4j.properties
Normal file
16
java/src/test/resources/log4j.properties
Normal file
@@ -0,0 +1,16 @@
|
||||
# this is the log4j configuration for tests
|
||||
|
||||
# Set root logger level to DEBUG and its only appender to A1.
|
||||
log4j.rootLogger=INFO, A1
|
||||
|
||||
# Set HTTP components' logger to INFO
|
||||
|
||||
log4j.category.io.netty=INFO
|
||||
log4j.category.io.reactivex=INFO
|
||||
log4j.category.com.microsoft.azure.cosmosdb=INFO
|
||||
# A1 is set to be a ConsoleAppender.
|
||||
log4j.appender.A1=org.apache.log4j.ConsoleAppender
|
||||
|
||||
# A1 uses PatternLayout.
|
||||
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.A1.layout.ConversionPattern=%d %5X{pid} [%t] %-5p %c - %m%n
|
||||
Reference in New Issue
Block a user