What is this called?

Say A and B were fwb but it ended and 6 motnhs later B asks to stay the night (A and B remained friends during those 6 months). A says fine as long as they don't have sex and makes it Cristal clear that A doesn't want to have sex when B stays the night. B agrees and then makes sexual advances after A starts kissing B (while still not wanting to have sex). A gives B a hanfjob to avoid having sex and they go to sleep. A tells me that they have feelings for B and they go to sleep. In the morning B gets on top of A and starts kissing A, A enjoys this but still doesn't want to have sex. B tried to finger A and A moves B's hands but after several times, A just wants it to be over and agrees to have sex. What is this called?