use of com.fsck.k9.controller.MessagingControllerCommands.PendingEmptyTrash in project k-9 by k9mail.
the class PendingCommandSerializerTest method testSerializeDeserialize__withoutArguments.
@Test
public void testSerializeDeserialize__withoutArguments() {
PendingCommand pendingCommand = PendingEmptyTrash.create();
String serializedCommand = pendingCommandSerializer.serialize(pendingCommand);
PendingEmptyTrash unserializedCommand = (PendingEmptyTrash) pendingCommandSerializer.unserialize(DATABASE_ID, pendingCommand.getCommandName(), serializedCommand);
assertEquals(DATABASE_ID, unserializedCommand.databaseId);
}
use of com.fsck.k9.controller.MessagingControllerCommands.PendingEmptyTrash in project k-9 by k9mail.
the class MigrationTo60Test method migrateEmptyTrash.
@Test
public void migrateEmptyTrash() {
OldPendingCommand command = queueEmptyTrash();
PendingCommand pendingCommand = MigrationTo60.migratePendingCommand(command);
assertTrue(pendingCommand instanceof PendingEmptyTrash);
}
Aggregations