@isTest
public with sharing class FinLibraryButtonController2Test {
    static testMethod void myUnitTest() {
        Product_Documentation__c pd = new Product_Documentation__c(
            Name = '产品资料1',
            Material_open_day__c = Date.today(),
            Material_status__c = '公开中',
            E_Learning__c = 'url'
        );
        insert pd;
        
        Bulletin_Board__c bb = new Bulletin_Board__c(
            Name = '公告1',
            Board_open_day__c = Date.today().addDays(5),
            Board_status__c = '公开中',
            iPad_Finlibrary_2__c = 'www.123123.com'
        );
        insert bb;
        
        Solution s1 = new Solution(
            SolutionName = '解决方案1',
            FAQ_disclosed_day__c = Date.today().addDays(10),
            Status = 'レビュー済み'
        );
        Solution s2 = new Solution(
            SolutionName = '解决方案2',
            FAQ_disclosed_day__c = Date.today().addDays(10),
            Status = 'ドラフト'
        );
        insert new Solution[] {s1, s2};
        
        FinLibraryButtonController2.getBulletinBoard(bb.Id);
        FinLibraryButtonController2.getBulletinBoard('123');
        FinLibraryButtonController.getBulletinBoard(bb.Id);
        FinLibraryButtonController.getBulletinBoard('123');
        FinLibraryButtonController3.getBulletinBoard(bb.Id);
        FinLibraryButtonController3.getBulletinBoard('123');        
    }
}