yeg
5 天以前 691f882740b46c5354fb33404fef6efb370e05dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.battery.business;
 
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
 
class BatteryBusinessModuleTest
{
    @Test
    void businessModuleExposesOnlyVendorNeutralDeviceContract()
    {
        assertNotNull(BatteryBusinessModule.class);
        assertNotNull(com.battery.device.api.DeviceAdapter.class);
        assertThrows(ClassNotFoundException.class,
                () -> Class.forName("com.battery.device.bts.BtsXmlCodec"));
    }
}