Change-Id: Id74694e18fec326df2b04eb796b46ccc6484b23f Signed-off-by: David Pursehouse <david.pursehouse@sonymobile.com>tags/v4.3.0.201603230630-rc1
factory = new DefaultReceivePackFactory(); | factory = new DefaultReceivePackFactory(); | ||||
} | } | ||||
@SuppressWarnings("unchecked") | |||||
@Test | @Test | ||||
public void testDisabledSingleton() throws ServiceNotAuthorizedException { | public void testDisabledSingleton() throws ServiceNotAuthorizedException { | ||||
factory = (ReceivePackFactory<HttpServletRequest>) ReceivePackFactory.DISABLED; | factory = (ReceivePackFactory<HttpServletRequest>) ReceivePackFactory.DISABLED; |
factory = new DefaultUploadPackFactory(); | factory = new DefaultUploadPackFactory(); | ||||
} | } | ||||
@SuppressWarnings("unchecked") | |||||
@Test | @Test | ||||
public void testDisabledSingleton() throws ServiceNotAuthorizedException { | public void testDisabledSingleton() throws ServiceNotAuthorizedException { | ||||
factory = (UploadPackFactory<HttpServletRequest>) UploadPackFactory.DISABLED; | factory = (UploadPackFactory<HttpServletRequest>) UploadPackFactory.DISABLED; |