提交 641a66fc 编写于 作者: W wuxiaodan

modify acts FieldNode.ValueType

Signed-off-by: Nwuxiaodan <wuxiaodan5@huawei.com>
上级 22b38397
......@@ -179,11 +179,12 @@ describe('FieldNodeTest', function() {
it('SUB_DDM_DKV_FIELDNODE_TYPE_0100', 0, async function(done) {
try {
let node = new ddm.FieldNode('first');
node.type = ddm.value.type.STRING;
console.info('type = ' + node.type);
expect(node.type === ddm.type.STRING).assertTrue()
node.type = ddm.ValueType.STRING;
console.info('SUB_DDM_DKV_FIELDNODE_TYPE_0100 type = ' + node.type);
expect(node.type === ddm.ValueType.STRING).assertTrue();
} catch (e) {
console.info("SUB_DDM_DKV_FIELDNODE_TYPE_0100 fail on exception: " + e);
expect(null).assertFail();
}
done();
})
......@@ -197,11 +198,12 @@ describe('FieldNodeTest', function() {
it('SUB_DDM_DKV_FIELDNODE_TYPE_0200', 0, async function(done) {
try {
let node = new ddm.FieldNode('first');
node.type = ddm.type.INTEGER;
console.info('type = ' + node.type);
expect(node.type === ddm.type.INTEGER).assertTrue()
node.type = ddm.ValueType.INTEGER;
console.info('SUB_DDM_DKV_FIELDNODE_TYPE_0200 type = ' + node.type);
expect(node.type === ddm.ValueType.INTEGER).assertTrue();
} catch (e) {
console.info("SUB_DDM_DKV_FIELDNODE_TYPE_0200 fail on exception: " + e);
expect(null).assertFail();
}
done();
})
......@@ -215,11 +217,12 @@ describe('FieldNodeTest', function() {
it('SUB_DDM_DKV_FIELDNODE_TYPE_0300', 0, async function(done) {
try {
let node = new ddm.FieldNode('first');
node.type = ddm.type.FLOAT;
console.info('type = ' + node.type);
expect(node.type === ddm.type.FLOAT).assertTrue()
node.type = ddm.ValueType.FLOAT;
console.info('SUB_DDM_DKV_FIELDNODE_TYPE_0300 type = ' + node.type);
expect(node.type === ddm.ValueType.FLOAT).assertTrue();
} catch (e) {
console.info("SUB_DDM_DKV_FIELDNODE_TYPE_0300 fail on exception: " + e);
expect(null).assertFail();
}
done();
})
......@@ -233,11 +236,12 @@ describe('FieldNodeTest', function() {
it('SUB_DDM_DKV_FIELDNODE_TYPE_0400', 0, async function(done) {
try {
let node = new ddm.FieldNode('first');
node.type = ddm.type.BYTE_ARRAY;
console.info('type = ' + node.type);
expect(node.type === ddm.type.BYTE_ARRAY).assertTrue()
node.type = ddm.ValueType.BYTE_ARRAY;
console.info('SUB_DDM_DKV_FIELDNODE_TYPE_0400 type = ' + node.type);
expect(node.type === ddm.ValueType.BYTE_ARRAY).assertTrue();
} catch (e) {
console.info("SUB_DDM_DKV_FIELDNODE_TYPE_0400 fail on exception: " + e);
expect(null).assertFail();
}
done();
})
......@@ -251,11 +255,12 @@ describe('FieldNodeTest', function() {
it('SUB_DDM_DKV_FIELDNODE_TYPE_0500', 0, async function(done) {
try {
let node = new ddm.FieldNode('first');
node.type = ddm.type.BOOLEAN;
console.info('type = ' + node.type);
expect(node.type === ddm.ValueType.BOOLEAN).assertTrue()
node.type = ddm.ValueType.BOOLEAN;
console.info('SUB_DDM_DKV_FIELDNODE_TYPE_0500 type = ' + node.type);
expect(node.type === ddm.ValueType.BOOLEAN).assertTrue();
} catch (e) {
console.info("SUB_DDM_DKV_FIELDNODE_TYPE_0500 fail on exception: " + e);
expect(null).assertFail();
}
done();
})
......@@ -269,11 +274,12 @@ describe('FieldNodeTest', function() {
it('SUB_DDM_DKV_FIELDNODE_TYPE_0600', 0, async function(done) {
try {
let node = new ddm.FieldNode('first');
node.type = ddm.type.DOUBLE;
console.info('type = ' + node.type);
expect(node.type === ddm.type.DOUBLE).assertTrue()
node.type = ddm.ValueType.DOUBLE;
console.info('SUB_DDM_DKV_FIELDNODE_TYPE_0600 type = ' + node.type);
expect(node.type === ddm.ValueType.DOUBLE).assertTrue();
} catch (e) {
console.info("SUB_DDM_DKV_FIELDNODE_TYPE_0600 fail on exception: " + e);
expect(null).assertFail();
}
done();
})
......
......@@ -170,11 +170,12 @@ describe('fieldNodeTest', function() {
it('testtype001', 0, async function(done) {
try {
let node = new ddm.FieldNode('first');
node.type = ddm.value.type.STRING;
console.info('type = ' + node.type);
expect(node.type === ddm.type.STRING).assertTrue()
node.type = ddm.ValueType.STRING;
console.info('testtype001 type = ' + node.type);
expect(node.type === ddm.ValueType.STRING).assertTrue();
} catch (e) {
console.info("testtype001 fail on exception: " + e);
expect(null).assertFail();
}
done();
})
......@@ -187,11 +188,12 @@ describe('fieldNodeTest', function() {
it('testtype002', 0, async function(done) {
try {
let node = new ddm.FieldNode('first');
node.type = ddm.type.INTEGER;
console.info('type = ' + node.type);
expect(node.type === ddm.type.INTEGER).assertTrue()
node.type = ddm.ValueType.INTEGER;
console.info('testtype002 type = ' + node.type);
expect(node.type === ddm.ValueType.INTEGER).assertTrue();
} catch (e) {
console.info("testtype002 fail on exception: " + e);
expect(null).assertFail();
}
done();
})
......@@ -204,11 +206,12 @@ describe('fieldNodeTest', function() {
it('testtype003', 0, async function(done) {
try {
let node = new ddm.FieldNode('first');
node.type = ddm.type.FLOAT;
console.info('type = ' + node.type);
expect(node.type === ddm.type.FLOAT).assertTrue()
node.type = ddm.ValueType.FLOAT;
console.info('testtype003 type = ' + node.type);
expect(node.type === ddm.ValueType.FLOAT).assertTrue();
} catch (e) {
console.info("testtype003 fail on exception: " + e);
expect(null).assertFail();
}
done();
})
......@@ -221,11 +224,12 @@ describe('fieldNodeTest', function() {
it('testtype004', 0, async function(done) {
try {
let node = new ddm.FieldNode('first');
node.type = ddm.type.BYTE_ARRAY;
console.info('type = ' + node.type);
expect(node.type === ddm.type.BYTE_ARRAY).assertTrue()
node.type = ddm.ValueType.BYTE_ARRAY;
console.info('testtype004 type = ' + node.type);
expect(node.type === ddm.ValueType.BYTE_ARRAY).assertTrue();
} catch (e) {
console.info("testtype004 fail on exception: " + e);
expect(null).assertFail();
}
done();
})
......@@ -238,11 +242,13 @@ describe('fieldNodeTest', function() {
it('testtype005', 0, async function(done) {
try {
let node = new ddm.FieldNode('first');
node.type = ddm.type.BOOLEAN;
console.info('type = ' + node.type);
expect(node.type === ddm.ValueType.BOOLEAN).assertTrue()
node.type = ddm.ValueType.BOOLEAN;
console.info('testtype005 type = ' + node.type);
expect(node.type === ddm.ValueType.BOOLEAN).assertTrue();
} catch (e) {
console.info("testtype005 fail on exception: " + e);
expect(null).assertFail();
}
done();
})
......@@ -255,11 +261,12 @@ describe('fieldNodeTest', function() {
it('testtype006', 0, async function(done) {
try {
let node = new ddm.FieldNode('first');
node.type = ddm.type.DOUBLE;
console.info('type = ' + node.type);
expect(node.type === ddm.type.DOUBLE).assertTrue()
node.type = ddm.ValueType.DOUBLE;
console.info('testtype006 type = ' + node.type);
expect(node.type === ddm.ValueType.DOUBLE).assertTrue();
} catch (e) {
console.info("testtype006 fail on exception: " + e);
expect(null).assertFail();
}
done();
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册