mirror of
https://github.com/microsoft/HybridRow.git
synced 2026-01-26 21:03:14 +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 {
|
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 code
|
||||||
* @param immutable
|
* @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 code
|
||||||
* @param size
|
* @param size
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import static org.testng.Assert.assertSame;
|
|||||||
import static org.testng.Assert.assertThrows;
|
import static org.testng.Assert.assertThrows;
|
||||||
import static org.testng.Assert.assertTrue;
|
import static org.testng.Assert.assertTrue;
|
||||||
|
|
||||||
|
@Test(groups = "unit")
|
||||||
public class Utf8StringTest {
|
public class Utf8StringTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ package com.azure.data.cosmos.core;
|
|||||||
|
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
|
@Test(groups = "unit")
|
||||||
public class UtfAnyStringTest {
|
public class UtfAnyStringTest {
|
||||||
|
|
||||||
@Test
|
@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")}\"))");
|
* Console.WriteLine($"new DateTimeItem(new byte[] {{ (byte) {string.Join(", (byte) ", buffer )} }}, OffsetDateTime.parse(\"{value.ToString("o")}\"))");
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
|
@Test(groups = "unit")
|
||||||
public class DateTimeCodecTest {
|
public class DateTimeCodecTest {
|
||||||
|
|
||||||
@Test(dataProvider = "dateTimeDataProvider")
|
@Test(dataProvider = "dateTimeDataProvider")
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ import static org.testng.Assert.assertEquals;
|
|||||||
* {value.ToString()}\"))");
|
* {value.ToString()}\"))");
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
|
@Test(groups = "unit")
|
||||||
public class DecimalCodecTest {
|
public class DecimalCodecTest {
|
||||||
|
|
||||||
@Test(dataProvider = "decimalDataProvider")
|
@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()}\"))");
|
* Console.WriteLine($"new GuidItem(new byte[] {{ (byte) {string.Join(", (byte) ", buffer )} }}, UUID.fromString(\"{value.ToString()}\"))");
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
|
@Test(groups = "unit")
|
||||||
public class GuidCodecTest {
|
public class GuidCodecTest {
|
||||||
|
|
||||||
@Test(dataProvider = "guidDataProvider")
|
@Test(dataProvider = "guidDataProvider")
|
||||||
|
|||||||
@@ -10,11 +10,12 @@ import java.nio.file.Paths;
|
|||||||
|
|
||||||
import static org.testng.Assert.*;
|
import static org.testng.Assert.*;
|
||||||
|
|
||||||
|
@Test(groups = "unit")
|
||||||
public class SystemSchemaTest {
|
public class SystemSchemaTest {
|
||||||
|
|
||||||
private static final Path SchemaFile = Paths.get("data", "CustomerSchema.json");
|
private static final Path SchemaFile = Paths.get("data", "CustomerSchema.json");
|
||||||
|
|
||||||
@Test
|
@Test(enabled = false)
|
||||||
public void testLoadSchema() {
|
public void testLoadSchema() {
|
||||||
|
|
||||||
final LayoutResolver layoutResolver = SystemSchema.layoutResolver();
|
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