Test update

This commit is contained in:
David Noble
2019-09-17 00:46:46 -07:00
parent c2449381ae
commit 5a73b29347
8 changed files with 25 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -5,6 +5,7 @@ package com.azure.data.cosmos.core;
import org.testng.annotations.Test;
@Test(groups = "unit")
public class UtfAnyStringTest {
@Test

View File

@@ -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")

View File

@@ -27,6 +27,7 @@ import static org.testng.Assert.assertEquals;
* {value.ToString()}\"))");
* }
*/
@Test(groups = "unit")
public class DecimalCodecTest {
@Test(dataProvider = "decimalDataProvider")

View File

@@ -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")

View File

@@ -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();

View 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