1fb726d48Sopenharmony_ci/*
2fb726d48Sopenharmony_ci * Copyright (C) 2022 Huawei Device Co., Ltd.
3fb726d48Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4fb726d48Sopenharmony_ci * you may not use this file except in compliance with the License.
5fb726d48Sopenharmony_ci * You may obtain a copy of the License at
6fb726d48Sopenharmony_ci *
7fb726d48Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8fb726d48Sopenharmony_ci *
9fb726d48Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10fb726d48Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11fb726d48Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12fb726d48Sopenharmony_ci * See the License for the specific language governing permissions and
13fb726d48Sopenharmony_ci * limitations under the License.
14fb726d48Sopenharmony_ci */
15fb726d48Sopenharmony_ci
16fb726d48Sopenharmony_ciimport { TransferConfig } from '../../../src/hdc/message/TransferConfig';
17fb726d48Sopenharmony_ci
18fb726d48Sopenharmony_cidescribe('TransferConfig Test', () => {
19fb726d48Sopenharmony_ci  let transferConfig = new TransferConfig();
20fb726d48Sopenharmony_ci  it('TransferConfigTest01', function () {
21fb726d48Sopenharmony_ci    expect(transferConfig).not.toBeUndefined();
22fb726d48Sopenharmony_ci  });
23fb726d48Sopenharmony_ci
24fb726d48Sopenharmony_ci  it('TransferConfigTest02', function () {
25fb726d48Sopenharmony_ci    expect(transferConfig.fileSize).toBeUndefined();
26fb726d48Sopenharmony_ci  });
27fb726d48Sopenharmony_ci
28fb726d48Sopenharmony_ci  it('TransferConfigTest03', function () {
29fb726d48Sopenharmony_ci    transferConfig.fileSize = true;
30fb726d48Sopenharmony_ci    expect(transferConfig.fileSize).toBeTruthy();
31fb726d48Sopenharmony_ci  });
32fb726d48Sopenharmony_ci
33fb726d48Sopenharmony_ci  it('TransferConfigTest04', function () {
34fb726d48Sopenharmony_ci    expect(transferConfig.atime).toBeUndefined();
35fb726d48Sopenharmony_ci  });
36fb726d48Sopenharmony_ci
37fb726d48Sopenharmony_ci  it('TransferConfigTest05', function () {
38fb726d48Sopenharmony_ci    transferConfig.atime = true;
39fb726d48Sopenharmony_ci    expect(transferConfig.atime).toBeTruthy();
40fb726d48Sopenharmony_ci  });
41fb726d48Sopenharmony_ci
42fb726d48Sopenharmony_ci  it('TransferConfigTest06', function () {
43fb726d48Sopenharmony_ci    expect(transferConfig.mtime).toBeUndefined();
44fb726d48Sopenharmony_ci  });
45fb726d48Sopenharmony_ci
46fb726d48Sopenharmony_ci  it('TransferConfigTest07', function () {
47fb726d48Sopenharmony_ci    transferConfig.mtime = true;
48fb726d48Sopenharmony_ci    expect(transferConfig.mtime).toBeTruthy();
49fb726d48Sopenharmony_ci  });
50fb726d48Sopenharmony_ci
51fb726d48Sopenharmony_ci  it('TransferConfigTest08', function () {
52fb726d48Sopenharmony_ci    expect(transferConfig.options).toBeFalsy();
53fb726d48Sopenharmony_ci  });
54fb726d48Sopenharmony_ci
55fb726d48Sopenharmony_ci  it('TransferConfigTest09', function () {
56fb726d48Sopenharmony_ci    transferConfig.options = true;
57fb726d48Sopenharmony_ci    expect(transferConfig.options).toBeTruthy();
58fb726d48Sopenharmony_ci  });
59fb726d48Sopenharmony_ci
60fb726d48Sopenharmony_ci  it('TransferConfigTest10', function () {
61fb726d48Sopenharmony_ci    expect(transferConfig.path).toBeUndefined();
62fb726d48Sopenharmony_ci  });
63fb726d48Sopenharmony_ci
64fb726d48Sopenharmony_ci  it('TransferConfigTest11', function () {
65fb726d48Sopenharmony_ci    transferConfig.path = true;
66fb726d48Sopenharmony_ci    expect(transferConfig.path).toBeTruthy();
67fb726d48Sopenharmony_ci  });
68fb726d48Sopenharmony_ci
69fb726d48Sopenharmony_ci  it('TransferConfigTest12', function () {
70fb726d48Sopenharmony_ci    expect(transferConfig.optionalName).toBeUndefined();
71fb726d48Sopenharmony_ci  });
72fb726d48Sopenharmony_ci
73fb726d48Sopenharmony_ci  it('TransferConfigTest13', function () {
74fb726d48Sopenharmony_ci    transferConfig.optionalName = true;
75fb726d48Sopenharmony_ci    expect(transferConfig.optionalName).toBeTruthy();
76fb726d48Sopenharmony_ci  });
77fb726d48Sopenharmony_ci
78fb726d48Sopenharmony_ci  it('TransferConfigTest14', function () {
79fb726d48Sopenharmony_ci    expect(transferConfig.updateIfNew).toBeUndefined();
80fb726d48Sopenharmony_ci  });
81fb726d48Sopenharmony_ci
82fb726d48Sopenharmony_ci  it('TransferConfigTest15', function () {
83fb726d48Sopenharmony_ci    transferConfig.updateIfNew = true;
84fb726d48Sopenharmony_ci    expect(transferConfig.updateIfNew).toBeTruthy();
85fb726d48Sopenharmony_ci  });
86fb726d48Sopenharmony_ci
87fb726d48Sopenharmony_ci  it('TransferConfigTest16', function () {
88fb726d48Sopenharmony_ci    expect(transferConfig.compressType).toBeUndefined();
89fb726d48Sopenharmony_ci  });
90fb726d48Sopenharmony_ci
91fb726d48Sopenharmony_ci  it('TransferConfigTest17', function () {
92fb726d48Sopenharmony_ci    transferConfig.compressType = true;
93fb726d48Sopenharmony_ci    expect(transferConfig.compressType).toBeTruthy();
94fb726d48Sopenharmony_ci  });
95fb726d48Sopenharmony_ci
96fb726d48Sopenharmony_ci  it('TransferConfigTest18', function () {
97fb726d48Sopenharmony_ci    expect(transferConfig.holdTimestamp).toBeUndefined();
98fb726d48Sopenharmony_ci  });
99fb726d48Sopenharmony_ci
100fb726d48Sopenharmony_ci  it('TransferConfigTest19', function () {
101fb726d48Sopenharmony_ci    transferConfig.holdTimestamp = true;
102fb726d48Sopenharmony_ci    expect(transferConfig.holdTimestamp).toBeTruthy();
103fb726d48Sopenharmony_ci  });
104fb726d48Sopenharmony_ci
105fb726d48Sopenharmony_ci  it('TransferConfigTest20', function () {
106fb726d48Sopenharmony_ci    expect(transferConfig.functionName).toBeUndefined();
107fb726d48Sopenharmony_ci  });
108fb726d48Sopenharmony_ci
109fb726d48Sopenharmony_ci  it('TransferConfigTest21', function () {
110fb726d48Sopenharmony_ci    transferConfig.functionName = true;
111fb726d48Sopenharmony_ci    expect(transferConfig.functionName).toBeTruthy();
112fb726d48Sopenharmony_ci  });
113fb726d48Sopenharmony_ci
114fb726d48Sopenharmony_ci  it('TransferConfigTest22', function () {
115fb726d48Sopenharmony_ci    expect(transferConfig.clientCwd).toBeUndefined();
116fb726d48Sopenharmony_ci  });
117fb726d48Sopenharmony_ci
118fb726d48Sopenharmony_ci  it('TransferConfigTest23', function () {
119fb726d48Sopenharmony_ci    transferConfig.clientCwd = true;
120fb726d48Sopenharmony_ci    expect(transferConfig.clientCwd).toBeTruthy();
121fb726d48Sopenharmony_ci  });
122fb726d48Sopenharmony_ci
123fb726d48Sopenharmony_ci  it('TransferConfigTest24', function () {
124fb726d48Sopenharmony_ci    expect(transferConfig.reserve1).toBeUndefined();
125fb726d48Sopenharmony_ci  });
126fb726d48Sopenharmony_ci
127fb726d48Sopenharmony_ci  it('TransferConfigTest25', function () {
128fb726d48Sopenharmony_ci    transferConfig.reserve1 = true;
129fb726d48Sopenharmony_ci    expect(transferConfig.reserve1).toBeTruthy();
130fb726d48Sopenharmony_ci  });
131fb726d48Sopenharmony_ci
132fb726d48Sopenharmony_ci  it('TransferConfigTest26', function () {
133fb726d48Sopenharmony_ci    expect(transferConfig.reserve2).toBeUndefined();
134fb726d48Sopenharmony_ci  });
135fb726d48Sopenharmony_ci
136fb726d48Sopenharmony_ci  it('TransferConfigTest27', function () {
137fb726d48Sopenharmony_ci    transferConfig.reserve2 = true;
138fb726d48Sopenharmony_ci    expect(transferConfig.reserve2).toBeTruthy();
139fb726d48Sopenharmony_ci  });
140fb726d48Sopenharmony_ci
141fb726d48Sopenharmony_ci  it('TransferConfigTest28', function () {
142fb726d48Sopenharmony_ci    expect(transferConfig.toString()).not.toBeUndefined();
143fb726d48Sopenharmony_ci  });
144fb726d48Sopenharmony_ci});
145