import notification from '@ohos.notification'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'

describe('ActsNotificationTest', function () {
    function publishMULTILINEContentCallback001(error){
        console.log('ActsNotificationTest ACTS_PublishMULTILINEContent_0100 asyncCallback'+JSON.stringify(error.code))
    }
    function publishMULTILINEContentCallback002(error){
        console.log('ActsNotificationTest ACTS_PublishMULTILINEContent_0200 asyncCallback'+JSON.stringify(error.code))
    }
    function publishMULTILINEContentCallback003(error){
        console.log('ActsNotificationTest ACTS_PublishMULTILINEContent_0300 asyncCallback'+JSON.stringify(error.code))
    }
    function publishLONGContentCallback001(error){
        console.log('ActsNotificationTest ACTS_PublishLONGContent_0100 asyncCallback'+JSON.stringify(error.code))
    }
    function publishLONGContentCallback002(error){
        console.log('ActsNotificationTest ACTS_PublishLONGContent_0200 asyncCallback'+JSON.stringify(error.code))
    }
    function publishLONGContentCallback003(error){
        console.log('ActsNotificationTest ACTS_PublishLONGContent_0300 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotTypeContentCallback001(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeContent_0100 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotTypeContentCallback002(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeContent_0200 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotTypeContentCallback003(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeContent_0300 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotTypeContentCallback004(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeContent_0400 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotOtherCallback001(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeOther_0100 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotOtherCallback002(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeOther_0200 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotOtherCallback003(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeOther_0300 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotOtherCallback004(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeOther_0400 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotServiceCallback001(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeService_0100 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotServiceCallback002(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeService_0200 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotServiceCallback003(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeService_0300 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotServiceCallback004(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeService_0400 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotSocialCallback001(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeService_0400 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotSocialCallback002(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeService_0400 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotSocialCallback003(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeService_0400 asyncCallback'+JSON.stringify(error.code))
    }
    function publishSlotSocialCallback004(error){
        console.log('ActsNotificationTest ACTS_Publish_SlotTypeService_0400 asyncCallback'+JSON.stringify(error.code))
    }

    /*应用侧发布本地多行类型通知*/
    it('ACTS_PublishMULTILINEContent_0100', 0,async function (done) {
       try {
           await notification.publish({
               Id: 1,
               content: {
                   contentType: notification.ContentType.NOTIFICATION_CONTENT_MULTILINE,
                   multiLine: {
                       title: "test_title",
                       text: "test_text",
                       additionalText: "test_additionalText",
                       briefText: "briefText",
                       longTitle: "longTitle",
                       lines: ["123", "234", "345", "456"]
                   },
               }
           }, publishMULTILINEContentCallback001);
       }catch(error){
        console.log('ActsNotificationTest ACTS_PublishMULTILINEContent_0100 asyncCallback'+JSON.stringify(error.code))}
        console.log("============ACTS_PublishMULTILINEContent_0100 finished============")
        done();
    })

    /*应用侧发布本地多行类型通知,不设置contentType*/
    it('ACTS_PublishMULTILINEContent_0200', 0,async function (done) {
       try {
           var notificationInfo = {
               Id: 1,
               content: {
               //                contentType: notification.ContentType.NOTIFICATION_CONTENT_MULTILINE,
                   multiLine: {
                       title: "test_title",
                       text: "test_text",
                       additionalText: "test_additionalText",
                       briefText: "briefText",
                       longTitle: "longTitle",
                       lines: ["123", "234", "345", "456"]
                   },
               }
           }
     }catch(err){
          console.log('ActsNotificationTest ACTS_PublishMULTILINEContent11111111'+err)
        }
      try{
           console.log('ActsNotificationTest ACTS_PublishMULTILINEContent222222222222')
           await notification.publish(notificationInfo,publishMULTILINEContentCallback002);
       }catch(error){
           console.log('ActsNotificationTest ACTS_PublishMULTILINEContent_0200 asyncCallback'+error)
       }
        console.log("============ACTS_PublishMULTILINEContent_0200 finished============")
        done();
    })

    /*应用侧发布本地多行类型通知,将contentType设置为其他类型*/
    it('ACTS_PublishMULTILINEContent_0300', 0,async function (done) {
       try {
           await notification.publish({
               Id: 1,
               content: {
                   contentType: notification.ContentType.NOTIFICATION_CONTENT_PICTURE,
                   multiLine: {
                       title: "test_title",
                       text: "test_text",
                       additionalText: "test_additionalText",
                       briefText: "briefText",
                       longTitle: "longTitle",
                       lines: ["123", "234", "345", "456"]
                   },
               }
           }, publishMULTILINEContentCallback003);
       }catch(error){
           console.log('ActsNotificationTest ACTS_PublishMULTILINEContent_0300 asyncCallback'+JSON.stringify(error.code))
       }
        console.log("============ACTS_PublishMULTILINEContent_0300 finished============")
        done();
    })

    /*应用侧发布本地多行类型通知--promise*/
    it('ACTS_PublishMULTILINEContent_0400', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_MULTILINE,
                multiLine: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText",
                    briefText:"briefText",
                    longTitle:"longTitle",
                    lines:["123","234","345","456"]
                },
            }
        }).then(console.log("============ACTS_PublishMULTILINEContent_0400 finished============"))
        done();
    })

    /*应用侧发布本地多行类型通知,不设置contentType--promise*/
    it('ACTS_PublishMULTILINEContent_0500', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
            //                contentType: notification.ContentType.NOTIFICATION_CONTENT_MULTILINE,
                multiLine: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText",
                    briefText:"briefText",
                    longTitle:"longTitle",
                    lines:["123","234","345","456"]
                },
            }
        }).then(console.log("============ACTS_PublishMULTILINEContent_0500 finished============"))
        done();
    })

    /*应用侧发布本地多行类型通知,将contentType设置为其他类型*/
    it('ACTS_PublishMULTILINEContent_0600', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_PICTURE,
                multiLine: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText",
                    briefText:"briefText",
                    longTitle:"longTitle",
                    lines:["123","234","345","456"]
                },
            }
        }).then(console.log("============ACTS_PublishMULTILINEContent_0300 finished============"))
        done();
    })

    /*应用侧发布本地长文本通知*/
    it('ACTS_PublishLONGContent_0100', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_LONG_TEXT,
                longText: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText",
                    longText:"longText",
                    briefText:"briefText",
                    expandedTitle:"expandedTitle"
                }}
        },publishLONGContentCallback001);
        console.log("============ACTS_PublishLONGContent_0100 finished============")
        done();
    })

    /*应用侧发布本地长文本通知，不设置contentType*/
    it('ACTS_PublishLONGContent_0200', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
//                contentType: notification.ContentType.NOTIFICATION_CONTENT_LONG_TEXT,
                longText: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText",
                    longText:"longText",
                    briefText:"briefText",
                    expandedTitle:"expandedTitle"
                }}
        },publishLONGContentCallback002);
        console.log("============ACTS_PublishLONGContent_0200 finished============")
        done();
    })

    /*应用侧发布本地长文本通知，将contentType设置为其他类型*/
    it('ACTS_PublishLONGContent_0300', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_MEDIA,
                longText: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText",
                    longText:"longText",
                    briefText:"briefText",
                    expandedTitle:"expandedTitle"
                }}
        },publishLONGContentCallback003);
        console.log("============ACTS_PublishLONGContent_0300 finished============")
        done();
    })

    /*应用侧发布本地长文本通知——promise*/
    it('ACTS_PublishLONGContent_0400', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_LONG_TEXT,
                longText: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText",
                    longText:"longText",
                    briefText:"briefText",
                    expandedTitle:"expandedTitle"
                }}
        }).then(console.log("============ACTS_PublishLONGContent_0400 finished============"))
        done();
    })

    /*应用侧发布本地长文本通知，不设置contentType*/
    it('ACTS_PublishLONGContent_0500', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
            //                contentType: notification.ContentType.NOTIFICATION_CONTENT_LONG_TEXT,
                longText: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText",
                    longText:"longText",
                    briefText:"briefText",
                    expandedTitle:"expandedTitle"
                }}
        }).then(console.log("============ACTS_PublishLONGContent_0500 finished============"))
        done();
    })

    /*应用侧发布本地长文本通知，将contentType设置为其他类型--promise*/
    it('ACTS_PublishLONGContent_0600', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_MEDIA,
                longText: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText",
                    longText:"longText",
                    briefText:"briefText",
                    expandedTitle:"expandedTitle"
                }}
        }).then(console.log("============ACTS_PublishLONGContent_0600 finished============"))
        done();
    })

    /*应用侧发布本地内容资讯类型的普通文本通知*/
    it('ACTS_Publish_SlotTypeContent_0100', 0,async function (done) {
            await notification.publish({
                Id: 1,
                content: {
                    contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                    normal: {
                        title: "test_title",
                        text: "test_text",
                        additionalText: "test_additionalText"
                    }
                 },
                  slotType:notification.SlotType.CONTENT_INFORMATION
            },publishSlotTypeContentCallback001);
            console.log("============ACTS_Publish_SlotTypeContent_0100 finished============")
            done();
        })

    /*应用侧发布本地内容资讯类型的普通文本通知*/
    it('ACTS_Publish_SlotTypeContent_0200', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
//                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                }
            },
            slotType:notification.SlotType.CONTENT_INFORMATION
        },publishSlotTypeContentCallback002);
        console.log("============ACTS_Publish_SlotTypeContent_0200 finished============")
        done();
    })

    /*应用侧发布本地内容资讯类型的普通文本通知*/
    it('ACTS_Publish_SlotTypeContent_0300', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                }
            },
//            slotType:notification.SlotType.CONTENT_INFORMATION
        },publishSlotTypeContentCallback003);
        console.log("============ACTS_Publish_SlotTypeContent_0300 finished============")
        done();
    })

    /*应用侧发布本地内容资讯类型的普通文本通知*/
    it('ACTS_Publish_SlotTypeContent_0400', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                }
            },
            slotType:notification.SlotType.CONTENT_INFORMATION
        },publishSlotTypeContentCallback004);
        console.log("============ACTS_Publish_SlotTypeContent_0400 finished============")
        done();
    })

    /*应用侧发布本地内容资讯类型的普通文本通知——promise*/
    it('ACTS_Publish_SlotTypeContent_0500', 0,async function (done) {
         notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                }
            },
            slotType:notification.SlotType.CONTENT_INFORMATION
        }).then( console.log("============ACTS_Publish_SlotTypeContent_0500 finished============"))
        done();
    })

    /*应用侧发布本地内容资讯类型的普通文本通知——promise*/
    it('ACTS_Publish_SlotTypeContent_0600', 0,async function (done) {
         notification.publish({
            Id: 1,
            content: {
            //                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                }
            },
            slotType:notification.SlotType.CONTENT_INFORMATION
        }).then(console.log("============ACTS_Publish_SlotTypeContent_0600 finished============"))
        done();
    })

    /*应用侧发布本地内容资讯类型的普通文本通知——promise*/
    it('ACTS_Publish_SlotTypeContent_0700', 0,async function (done) {
         notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                }
            },
        //            slotType:notification.SlotType.CONTENT_INFORMATION
        }).then(console.log("============ACTS_Publish_SlotTypeContent_0700 finished============"))
        done();
    })

    /*应用侧发布本地内容资讯类型的普通文本通知——promise*/
    it('ACTS_Publish_SlotTypeContent_0800', 0,async function (done) {
         notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                }
            },
            slotType:notification.SlotType.CONTENT_INFORMATION
        }).then(console.log("============ACTS_Publish_SlotTypeContent_0800 finished============"))
        done();
    })

    /*应用侧发布本地其他类型的普通文本通知*/
    it('ACTS_PublishSlotTypeOther_0100', 0,async function (done) {
            await notification.publish({
                content: {
                    contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                    normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                    },
                    slotType:notification.SlotType.OTHER_TYPES
                }
            },publishSlotOtherCallback001);
            console.log("============ACTS_PublishSlotTypeOther_0100 finished============")
            done();
        })

    /*应用侧发布本地其他类型的普通文本通知*/
    it('ACTS_PublishSlotTypeOther_0200', 0,async function (done) {
        await notification.publish({
            content: {
//                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
                slotType:notification.SlotType.OTHER_TYPES
            }
        },publishSlotOtherCallback002);
        console.log("============ACTS_PublishSlotTypeOther_0200 finished============")
        done();
    })

    /*应用侧发布本地其他类型的普通文本通知*/
    it('ACTS_PublishSlotTypeOther_0300', 0,async function (done) {
        await notification.publish({
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
//                slotType:notification.SlotType.OTHER_TYPES
            }
        },publishSlotOtherCallback003);
        console.log("============ACTS_PublishSlotTypeOther_0300 finished============")
        done();
    })

    /*应用侧发布本地其他类型的普通文本通知*/
    it('ACTS_PublishSlotTypeOther_0400', 0,async function (done) {
        await notification.publish({
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
                slotType:notification.SlotType.SOCIAL_COMMUNICATION
            }
        },publishSlotOtherCallback004);
        console.log("============ACTS_PublishSlotTypeOther_0400 finished============")
        done();
    })

    /*应用侧发布本地其他类型的普通文本通知——promise*/
    it('ACTS_PublishSlotTypeOther_0500', 0,async function (done) {
         notification.publish({
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
                slotType:notification.SlotType.OTHER_TYPES
            }
        }).then(console.log("============ACTS_PublishSlotTypeOther_0500 finished============"))
        done();
    })

    /*应用侧发布本地其他类型的普通文本通知——promise*/
    it('ACTS_PublishSlotTypeOther_0600', 0,async function (done) {
         notification.publish({
            content: {
            //                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
                slotType:notification.SlotType.OTHER_TYPES
            }
        }).then(console.log("============ACTS_PublishSlotTypeOther_0600 finished============"))
        done();
    })

    /*应用侧发布本地其他类型的普通文本通知———promise*/
    it('ACTS_PublishSlotTypeOther_0700', 0,async function (done) {
         notification.publish({
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
            //                slotType:notification.SlotType.OTHER_TYPES
            }
        }).then(console.log("============ACTS_PublishSlotTypeOther_0700 finished============"))
        done();
    })

    /*应用侧发布本地其他类型的普通文本通知*/
    it('ACTS_PublishSlotTypeOther_0800', 0,async function (done) {
         notification.publish({
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
                slotType:notification.SlotType.SOCIAL_COMMUNICATION
            }
        }).then(console.log("============ACTS_PublishSlotTypeOther_0800 finished============"))
        done();
    })

    /*应用侧发布本地服务提醒类型的普通文本通知*/
    it('ACTS_PublishSlotTypeService_0100', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                title: "test_title",
                text: "test_text",
                additionalText: "test_additionalText"
                },
            },
                slotType:notification.SlotType.SERVICE_INFORMATION
        },publishSlotServiceCallback001);
        console.log("============ACTS_PublishSlotTypeService_0100 finished============")
        done();
    })

    /*应用侧发布本地服务提醒类型的普通文本通知*/
    it('ACTS_PublishSlotTypeService_0200', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
//                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
            },
            slotType:notification.SlotType.SERVICE_INFORMATION
        },publishSlotServiceCallback002);
        console.log("============ACTS_PublishSlotTypeService_0200 finished============")
        done();
    })

    /*应用侧发布本地服务提醒类型的普通文本通知*/
    it('ACTS_PublishSlotTypeService_0300', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
            },
//            slotType:notification.SlotType.SERVICE_INFORMATION
        },publishSlotServiceCallback003);
        console.log("============ACTS_PublishSlotTypeService_0300 finished============")
        done();
    })

    /*应用侧发布本地服务提醒类型的普通文本通知*/
    it('ACTS_PublishSlotTypeService_0400', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
            },
            slotType:notification.SlotType.UNKNOWN_TYPE
        },publishSlotServiceCallback004);
        console.log("============ACTS_PublishSlotTypeService_0400 finished============")
        done();
    })

    /*应用侧发布本地服务提醒类型的普通文本通知——promise*/
    it('ACTS_PublishSlotTypeService_0500', 0,async function (done) {
         notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
            },
            slotType:notification.SlotType.SERVICE_INFORMATION
        }).then(console.log("============ACTS_PublishSlotTypeService_0500 finished============"))
        done();
    })

    /*应用侧发布本地服务提醒类型的普通文本通知——promise*/
    it('ACTS_PublishSlotTypeService_0600', 0,async function (done) {
         notification.publish({
            Id: 1,
            content: {
            //                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
            },
            slotType:notification.SlotType.SERVICE_INFORMATION
        }).then(console.log("============ACTS_PublishSlotTypeService_0600 finished============"))
        done();
    })

    /*应用侧发布本地服务提醒类型的普通文本通知——promise*/
    it('ACTS_PublishSlotTypeService_0700', 0,async function (done) {
         notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
            },
        //            slotType:notification.SlotType.SERVICE_INFORMATION
        }).then(console.log("============ACTS_PublishSlotTypeService_0700 finished============"))
        done();
    })

    /*应用侧发布本地服务提醒类型的普通文本通知——promise*/
    it('ACTS_PublishSlotTypeService_0800', 0,async function (done) {
         notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
            },
            slotType:notification.SlotType.UNKNOWN_TYPE
        }).then(console.log("============ACTS_PublishSlotTypeService_0800 finished============"))
        done();
    })

    /*应用侧发布本地社交通讯类型的普通文本通知*/
    it('ACTS_PublishSlotTypeSocial_0100', 0,async function (done) {
        await notification.publish({
                Id: 1,
                content: {
                    contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                    normal: {
                        title: "test_title",
                        text: "test_text",
                        additionalText: "test_additionalText"
                    },
                    slotType:notification.SlotType.SOCIAL_COMMUNICATION
                }
       },publishSlotSocialCallback001);
       console.log("============ACTS_PublishSlotTypeSocial_0600 finished============")
       done();
    })

    /*应用侧发布本地社交通讯类型的普通文本通知*/
    it('ACTS_PublishSlotTypeSocial_0200', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
//                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
                slotType:notification.SlotType.SOCIAL_COMMUNICATION
            }
        },publishSlotSocialCallback002);
        console.log("============ACTS_PublishSlotTypeSocial_0600 finished============")
        done();
    })

    /*应用侧发布本地社交通讯类型的普通文本通知*/
    it('ACTS_PublishSlotTypeSocial_0300', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
//                slotType:notification.SlotType.SOCIAL_COMMUNICATION
            }
        },publishSlotSocialCallback003);
        console.log("============ACTS_PublishSlotTypeSocial_0300 finished============")
        done();
    })

    /*应用侧发布本地社交通讯类型的普通文本通知*/
    it('ACTS_PublishSlotTypeSocial_0400', 0,async function (done) {
        await notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
                slotType:notification.SlotType.CONTENT_INFORMATION
            }
        },publishSlotSocialCallback004);
        console.log("============ACTS_PublishSlotTypeSocial_0400 finished============")
        done();
    })

    /*应用侧发布本地社交通讯类型的普通文本通知——promise*/
    it('ACTS_PublishSlotTypeSocial_0500', 0,async function (done) {
         notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
                slotType:notification.SlotType.SOCIAL_COMMUNICATION
            }
        }).then(console.log("============ACTS_PublishSlotTypeSocial_0500 finished============"))
        done();
    })

    /*应用侧发布本地社交通讯类型的普通文本通知——promise*/
    it('ACTS_PublishSlotTypeSocial_0600', 0,async function (done) {
         notification.publish({
            Id: 1,
            content: {
            //                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
                slotType:notification.SlotType.SOCIAL_COMMUNICATION
            }
        }).then(console.log("============ACTS_PublishSlotTypeSocial_0600 finished============"))
        done();
    })

    /*应用侧发布本地社交通讯类型的普通文本通知——promise*/
    it('ACTS_PublishSlotTypeSocial_0700', 0,async function (done) {
         notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
            //                slotType:notification.SlotType.SOCIAL_COMMUNICATION
            }
        }).then(console.log("============ACTS_PublishSlotTypeSocial_0700 finished============"))
        done();
    })

    /*应用侧发布本地社交通讯类型的普通文本通知——promise*/
    it('ACTS_PublishSlotTypeSocial_0800', 0,async function (done) {
         notification.publish({
            Id: 1,
            content: {
                contentType: notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
                normal: {
                    title: "test_title",
                    text: "test_text",
                    additionalText: "test_additionalText"
                },
                slotType:notification.SlotType.CONTENT_INFORMATION
            }
        }).then(console.log("============ACTS_PublishSlotTypeSocial_0800 finished============"))
        done();
    })

})