GAAS GFrame项目web后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
449 B

  1. package container
  2. import "testing"
  3. func TestInformationManager_New(t *testing.T) {
  4. informationManager := NewInformationManager()
  5. if informationManager == nil {
  6. t.Fatalf("创建失败!")
  7. }
  8. defaultInformationManager, ok := informationManager.(*DefaultInformationManager)
  9. if !ok {
  10. t.Fatalf("组件信息管理器类型不正确!")
  11. }
  12. if len(defaultInformationManager.informationMapping) != 0 {
  13. t.Fatalf("组件列表数量错误!")
  14. }
  15. }