input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
hasIncommingTransitions_return_true_if_flownode_hasIncommingTransitions ( ) { flowNode . addIncomingTransition ( new org . bonitasoft . engine . core . process . definition . model . impl . STransitionDefinitionImpl ( "incoming" ) ) ; "<AssertPlaceHolder>" ; } hasIncomingTransitions ( ) { return ! ( incomings . isEmpty...
org . junit . Assert . assertTrue ( flowNode . hasIncomingTransitions ( ) )
getInitHookWithResourceLoaderDependingInitHook ( ) { LazyInitRegistration . APPLICATION_CONTEXT = applicationContextMock ; when ( applicationContextMock . containsBean ( LazyInitRegistration . RESOURCE_LOADER_DEPENDING_INIT_HOOK ) ) . thenReturn ( true ) ; when ( applicationContextMock . getBean ( LazyInitRegistration ...
org . junit . Assert . assertEquals ( initHookMock , org . camunda . bpm . spring . boot . starter . webapp . filter . LazyInitRegistration . getInitHook ( ) )
testRequestGetEC ( ) { java . security . Security . addProvider ( new org . bouncycastle . jce . provider . BouncyCastleProvider ( ) ) ; java . security . cert . X509Certificate pcaCert = gov . niarl . his . privacyca . TpmUtils . certFromP12 ( ( ( homeFolder ) + ( PrivacyCaFileName ) ) , PrivacyCaPassword ) ; java . l...
org . junit . Assert . assertNotNull ( encryptEkCert )
pauseUntilInvisibleTest ( ) { iface . go ( testPage ) ; com . sugarcrm . candybean . automation . webdriver . WebDriverElement text = $ ( "#clickToToggleVisibilityDiv<sp>#intervalPara" ) ; text . click ( ) ; iface . getPause ( ) . waitForInvisible ( new com . sugarcrm . candybean . automation . element . Hook ( com . s...
org . junit . Assert . assertTrue ( ( ! ( text . isDisplayed ( ) ) ) )
hasErrorCode_unknownErrorCode ( ) { final com . rapid7 . client . dcerpc . RPCException rpcException = new com . rapid7 . client . dcerpc . RPCException ( "test" , ( - 1 ) ) ; "<AssertPlaceHolder>" ; } hasErrorCode ( ) { return ( errorCode ) != null ; }
org . junit . Assert . assertFalse ( rpcException . hasErrorCode ( ) )
itIsDeleted ( ) { txaction . setStatus ( TxactionStatus . DISABLED ) ; "<AssertPlaceHolder>" ; } isDisabled ( ) { return ( getStatus ( ) ) == ( TxactionStatus . DISABLED ) ; }
org . junit . Assert . assertTrue ( txaction . isDisabled ( ) )
testCreateDepartment ( ) { com . onboard . domain . model . Department retDepartment = departmentServiceImpl . create ( department ) ; verify ( mockedDepartmentMapper , times ( 1 ) ) . insert ( com . onboard . service . account . impl . test . Mockito . any ( com . onboard . domain . model . Department . class ) ) ; "<...
org . junit . Assert . assertEquals ( department , retDepartment )
testExecute_CoverityProjectNotSpecified ( ) { final org . sonar . api . batch . sensor . internal . SensorContextTester sensorContextTester = org . sonar . api . batch . sensor . internal . SensorContextTester . create ( new java . io . File ( "src" ) ) ; final org . sonar . plugins . coverity . batch . HashMap < java ...
org . junit . Assert . assertEquals ( 0 , issues . size ( ) )
convert_when_streamMessage_has_jmsTimestamp ( ) { long jmsTimestamp = 3600L ; javax . jms . StreamMessage message = new org . apache . activemq . command . ActiveMQStreamMessage ( ) ; message . setJMSTimestamp ( jmsTimestamp ) ; message . reset ( ) ; javax . jms . StreamMessage result = uut . convert ( message ) ; "<As...
org . junit . Assert . assertEquals ( jmsTimestamp , result . getJMSTimestamp ( ) )
codeChange ( ) { org . searchisko . api . rest . ContributorRestService tested = getTested ( ) ; java . util . Map < java . lang . String , java . lang . Object > value = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; org . mockito . Mockito . when ( tested . contributorService . change...
org . junit . Assert . assertEquals ( value , tested . codeChange ( "id" , "code" ) )
testHeaderExists ( ) { org . ocpsoft . rewrite . servlet . config . Header header = org . ocpsoft . rewrite . servlet . config . Header . exists ( "Accept-{head}" ) ; org . ocpsoft . rewrite . mock . MockEvaluationContext context = new org . ocpsoft . rewrite . mock . MockEvaluationContext ( ) ; org . ocpsoft . rewrite...
org . junit . Assert . assertTrue ( header . evaluate ( rewrite , context ) )
shouldSupportSpelInType ( ) { org . springframework . data . elasticsearch . entities . SpELEntity spELEntity = new org . springframework . data . elasticsearch . entities . SpELEntity ( ) ; repository . save ( spELEntity ) ; org . springframework . data . elasticsearch . core . query . NativeSearchQuery nativeSearchQu...
org . junit . Assert . assertThat ( count , org . hamcrest . core . Is . is ( 1L ) )
testEvaluate_constantCollectionPath ( ) { final notaql . model . path . OutputPath path = new notaql . model . path . OutputPath ( new notaql . model . path . IdStep ( new notaql . model . path . Step ( 0 ) ) ) ; final java . util . List < notaql . model . path . StepNameEvaluationResult > evaluate = path . evaluate ( ...
org . junit . Assert . assertEquals ( l , evaluate )
testGetFieldValue_RelationTarget ( ) { com . archimatetool . model . IArchimateRelationship relation = IArchimateFactory . eINSTANCE . createServingRelationship ( ) ; com . archimatetool . model . IArtifact target = IArchimateFactory . eINSTANCE . createArtifact ( ) ; target . setName ( "target" ) ; relation . setTarge...
org . junit . Assert . assertEquals ( "target" , o )
testGetParametersWithDefaultEntityAndDisabledSecurity ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . benefit . Benefit entity = new org . lnu . is . domain . benefit . Benefit ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java . lang . Str...
org . junit . Assert . assertEquals ( expected , actual )
testQuiesceTimerServiceAfterOpClose ( ) { final org . apache . flink . streaming . runtime . tasks . OneInputStreamTaskTestHarness < java . lang . String , java . lang . String > testHarness = new org . apache . flink . streaming . runtime . tasks . OneInputStreamTaskTestHarness ( OneInputStreamTask :: new , 2 , 2 , or...
org . junit . Assert . assertTrue ( timeService . isAlive ( ) )
testGoedFilter ( ) { nl . bzk . migratiebrp . conversie . model . lo3 . syntax . Lo3CategorieWaarde categorie01 = maakLo3CategorieWaarde ( Lo3CategorieEnum . CATEGORIE_01 , Lo3ElementEnum . ELEMENT_0110 , Lo3ElementEnum . ELEMENT_0120 , Lo3ElementEnum . ELEMENT_0210 , Lo3ElementEnum . ELEMENT_0220 , Lo3ElementEnum . EL...
org . junit . Assert . assertEquals ( java . util . Collections . emptyList ( ) , result )
testCreationDateFailuer ( ) { nom . tam . fits . BasicHDU < ? > dummyHDU = nom . tam . fits . BasicHDU . getDummyHDU ( ) ; dummyHDU . getHeader ( ) . card ( nom . tam . fits . DATE ) . value ( "ABCDE" ) ; "<AssertPlaceHolder>" ; } getCreationDate ( ) { try { return new nom . tam . fits . FitsDate ( this . myHeader . ge...
org . junit . Assert . assertNull ( dummyHDU . getCreationDate ( ) )
testCallCapabilityLocalRepositoryEventListenersOnlyOnce ( ) { java . util . concurrent . atomic . AtomicInteger atomicInteger = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; com . liferay . registry . Registry registry = com . liferay . registry . RegistryUtil . getRegistry ( ) ; com . liferay . documen...
org . junit . Assert . assertEquals ( 1 , atomicInteger . get ( ) )
testRemove ( ) { com . supaham . commons . placeholders . PlaceholderSet < com . supaham . commons . placeholders . Placeholder > set = new com . supaham . commons . placeholders . PlaceholderSet ( ) ; set . remove ( com . supaham . commons . placeholders . SimplePlaceholderTest . SIMPLE_PLACEHOLDER ) ; "<AssertPlaceHo...
org . junit . Assert . assertFalse ( set . contains ( com . supaham . commons . placeholders . SimplePlaceholderTest . SIMPLE_PLACEHOLDER ) )
test1 ( ) { java . util . TreeMap < org . apache . accumulo . core . data . Key , org . apache . accumulo . core . data . Value > data = new java . util . TreeMap ( ) ; data . put ( newKey ( "r1" , "cf1" , "cq1" ) , new org . apache . accumulo . core . data . Value ( "" ) ) ; data . put ( newKey ( "r1" , "cf2" , "cq1" ...
org . junit . Assert . assertSame ( smi , cf )
testComputedShouldBeMin ( ) { final int minProbeRecordsPerBatch = 10 ; final int computedProbeRecordsPerBatch = HashJoinMemoryCalculatorImpl . PostBuildCalculationsImpl . computeProbeRecordsPerBatch ( 100 , 2 , 100 , minProbeRecordsPerBatch , 50 , 40 , 200 ) ; "<AssertPlaceHolder>" ; } computeProbeRecordsPerBatch ( lon...
org . junit . Assert . assertEquals ( minProbeRecordsPerBatch , computedProbeRecordsPerBatch )
testToAndFromUrl ( ) { com . google . cloud . compute . deprecated . DiskTypeId diskTypeId = com . google . cloud . compute . deprecated . DiskTypeId . of ( com . google . cloud . compute . deprecated . DiskTypeIdTest . PROJECT , com . google . cloud . compute . deprecated . DiskTypeIdTest . ZONE , com . google . cloud...
org . junit . Assert . assertSame ( diskTypeId , diskTypeId . setProjectId ( com . google . cloud . compute . deprecated . DiskTypeIdTest . PROJECT ) )
testOr ( ) { org . kie . api . KieBase kbase = loadKnowledgeBase ( "test_OrNesting.drl" ) ; org . kie . api . runtime . KieSession workingMemory = createKnowledgeSession ( kbase ) ; final java . util . List list = new java . util . ArrayList ( ) ; workingMemory . setGlobal ( "results" , list ) ; final org . drools . co...
org . junit . Assert . assertEquals ( 1 , list . size ( ) )
testBondPermutation ( ) { org . openscience . cdk . interfaces . IAtomContainer pamine = org . openscience . cdk . fingerprint . ShortestPathFingerprinterTest . makePropylAmine ( ) ; org . openscience . cdk . fingerprint . ShortestPathFingerprinter fp = new org . openscience . cdk . fingerprint . ShortestPathFingerprin...
org . junit . Assert . assertTrue ( bs1 . equals ( bs2 ) )
testHelpFromCreateRequest ( ) { com . dumbster . smtp . Request request = com . dumbster . smtp . Request . createRequest ( SmtpState . GREET , "HELP" ) ; "<AssertPlaceHolder>" ; } getClientAction ( ) { return clientAction ; }
org . junit . Assert . assertEquals ( "HELP" , request . getClientAction ( ) . toString ( ) )
testParseZeroReal ( ) { java . lang . String source = ( ( ( "0" + ( getDecimalCharacter ( ) ) ) + "0<sp>-<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "4343i" ; org . apache . commons . math . complex . Complex expected = new org . apache . commons . math . complex . Complex ( 0.0 , ( - 1.4343 ) ) ; org . apache . commons...
org . junit . Assert . assertEquals ( expected , actual )
dontBombOnNull ( ) { kong . unirest . Headers h = new kong . unirest . Headers ( ) ; h . add ( null , "foo" ) ; "<AssertPlaceHolder>" ; } size ( ) { return headers . stream ( ) . map ( Header :: getName ) . collect ( toSet ( ) ) . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , h . size ( ) )
voiceTest ( ) { zemberek . core . turkish . TurkishAlphabet alphabet = TurkishAlphabet . INSTANCE ; java . lang . String iStr = "gGkKpPtTaAbB" ; java . lang . String oStr = "cCbBdDaAbB" ; for ( int i = 0 ; i < ( iStr . length ( ) ) ; i ++ ) { char in = iStr . charAt ( i ) ; char outExpected = oStr . charAt ( i ) ; "<As...
org . junit . Assert . assertEquals ( "" , java . lang . String . valueOf ( outExpected ) , java . lang . String . valueOf ( alphabet . voice ( in ) ) )
shouldFindSameFalisyingValuesGivenSameSeed ( ) { verifier . qt ( 42 ) . forAll ( this . g ) . check ( ( a ) -> a > 1000 ) ; int falsifyingValue = verifier . smallestFalsifiedValue ( ) ; org . quicktheories . impl . QTTester verifier2 = new org . quicktheories . impl . QTTester ( ) ; verifier2 . qt ( 42 ) . forAll ( thi...
org . junit . Assert . assertEquals ( falsifyingValue , repeatedCheck )
testFreeSelectSqlBuilderInAllDBAndAllTableShards ( ) { com . ctrip . platform . dal . dao . shard . List < java . lang . String > list = new com . ctrip . platform . dal . dao . shard . ArrayList ( ) ; list . add ( "1" ) ; list . add ( "2" ) ; list . add ( "3" ) ; list . add ( "4" ) ; com . ctrip . platform . dal . dao...
org . junit . Assert . assertEquals ( 20 , result . size ( ) )
startProcess ( ) { org . activiti . engine . RepositoryService repositoryService = activitiRule . getRepositoryService ( ) ; repositoryService . createDeployment ( ) . addInputStream ( "leave.bpmn20.xml" , new java . io . FileInputStream ( filename ) ) . deploy ( ) ; org . activiti . engine . RuntimeService runtimeServ...
org . junit . Assert . assertNotNull ( processInstance . getId ( ) )
should_return_empty_List_if_given_Collection_has_only_null_elements ( ) { java . util . Collection < java . lang . String > c = new java . util . ArrayList < java . lang . String > ( ) ; c . add ( null ) ; "<AssertPlaceHolder>" ; } nonNullElementsIn ( org . fest . util . Collection ) { if ( c == null ) { return org . f...
org . junit . Assert . assertTrue ( org . fest . util . Collections . nonNullElementsIn ( c ) . isEmpty ( ) )
testIsNotification2 ( ) { boolean isUI = com . vaadin . client . componentlocator . LocatorUtil . isNotificationElement ( "com.vaadin.ui.Notification" ) ; "<AssertPlaceHolder>" ; } isNotificationElement ( java . lang . String ) { java . lang . String regex = "^\\/{0,2}(com\\.vaadin\\.ui\\.)?V?Notification[\\/\\[]?" ; c...
org . junit . Assert . assertTrue ( isUI )
testLargeByteBufferAttribute ( ) { io . joynr . proxy . ProxyBuilder < joynr . tests . testProxy > proxyBuilder = consumerRuntime . getProxyBuilder ( domain , joynr . tests . testProxy . class ) ; joynr . tests . testProxy proxy = proxyBuilder . setMessagingQos ( messagingQos ) . setDiscoveryQos ( discoveryQos ) . buil...
org . junit . Assert . assertArrayEquals ( byteArray , result )
testGetInstanceId8 ( ) { com . liferay . portal . kernel . model . PortletInstance portletInstance = com . liferay . portal . kernel . model . PortletInstance . fromPortletInstanceKey ( getPortletInstanceKey ( getPortletInstanceKey ( ) , 1234 , "5678" ) ) ; "<AssertPlaceHolder>" ; } getInstanceId ( ) { return _instance...
org . junit . Assert . assertEquals ( "5678" , portletInstance . getInstanceId ( ) )
testPushBuffer ( ) { net . yadan . banana . stack . Stack s = new net . yadan . banana . stack . Stack ( 100 , net . yadan . banana . stack . StackTest . BLOCK_SIZE ) ; net . yadan . banana . memory . IBuffer buffer = new net . yadan . banana . memory . Buffer ( 20 ) ; net . yadan . banana . memory . IBuffer out = new ...
org . junit . Assert . assertArrayEquals ( buffer . array ( ) , out . array ( ) )
intermediate_filter ( ) { long elementsLessThanThree = java . util . stream . Stream . of ( 1 , 2 , 3 , 4 ) . filter ( ( p ) -> ( p . intValue ( ) ) < 3 ) . count ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 2 , elementsLessThanThree )
testSetNameNoFragmentManager ( ) { org . hawkular . apm . client . collector . internal . DefaultTraceCollector collector = new org . hawkular . apm . client . collector . internal . DefaultTraceCollector ( ) ; collector . setTransaction ( null , "test" ) ; "<AssertPlaceHolder>" ; collector . getFragmentManager ( ) . c...
org . junit . Assert . assertEquals ( "test" , collector . getTransaction ( ) )
testIsActive_isFalseAfterCreation ( ) { applicationContext = new org . eclipse . rap . rwt . internal . application . ApplicationContextImpl ( null , null ) ; "<AssertPlaceHolder>" ; } isActive ( ) { return this . equals ( editor . getActivePageInstance ( ) ) ; }
org . junit . Assert . assertFalse ( applicationContext . isActive ( ) )
testRemoveWorkReportType ( ) { org . libreplan . business . workreports . entities . WorkReportType workReportType = createValidWorkReportType ( ) ; workReportTypeDAO . save ( workReportType ) ; workReportTypeDAO . remove ( workReportType . getId ( ) ) ; "<AssertPlaceHolder>" ; } exists ( PK extends java . io . Seriali...
org . junit . Assert . assertFalse ( workReportTypeDAO . exists ( workReportType . getId ( ) ) )
setAuthor ( ) { java . lang . String newAuthor = "New<sp>Author" ; instance . setAuthor ( newAuthor ) ; "<AssertPlaceHolder>" ; } getAuthor ( ) { initFields ( ) ; return author ; }
org . junit . Assert . assertEquals ( newAuthor , instance . getAuthor ( ) )
startDialogAndVerifyThatAKSExceptionIsProperlyHandled ( ) { sttService = new org . eclipse . smarthome . core . voice . internal . STTServiceStub ( ) ; ksService = new org . eclipse . smarthome . core . voice . internal . KSServiceStub ( ) ; ttsService = new org . eclipse . smarthome . core . voice . internal . TTSServ...
org . junit . Assert . assertFalse ( ksService . isWordSpotted ( ) )
testGetServerWebsocketEndpointConfiguratorLocalServer ( ) { java . lang . String contextPath = "/pentaho" ; java . lang . String serverUrl = "http://localhost:8080" ; java . util . function . Predicate < java . lang . String > isOriginAllowedPredicate = ( s ) -> false ; when ( pluginDispatchServlet . getServerUrl ( con...
org . junit . Assert . assertTrue ( endpointConfigurator . checkOrigin ( "http://localhost:8080" ) )
testSerialization2 ( ) { com . fasterxml . jackson . databind . ObjectMapper objectMapper = com . puresoltechnologies . ductiledb . logstore . utils . DefaultObjectMapper . getInstance ( ) ; objectMapper . enable ( com . fasterxml . jackson . databind . SerializationFeature . INDENT_OUTPUT ) ; com . puresoltechnologies...
org . junit . Assert . assertEquals ( configuration , configuration2 )
testPrepareDoesNotThrowExceptionWhenInitializingClusterMetricsConsumerIsFailing ( ) { org . apache . storm . metric . ClusterMetricsConsumerExecutor sut = new org . apache . storm . metric . ClusterMetricsConsumerExecutor ( org . apache . storm . metric . ClusterMetricsConsumerExecutorTest . MockFailingClusterMetricsCo...
org . junit . Assert . assertEquals ( 2 , org . apache . storm . metric . ClusterMetricsConsumerExecutorTest . MockFailingClusterMetricsConsumer . getPrepareCallCount ( ) )
testListSinceDate ( ) { java . util . List < com . alienvault . otx . model . pulse . Pulse > allPulses = otxConnection . getPulsesSinceDate ( org . joda . time . DateTime . now ( ) . minusDays ( 10 ) ) ; "<AssertPlaceHolder>" ; } getPulsesSinceDate ( org . joda . time . DateTime ) { return getPulses ( com . alienvault...
org . junit . Assert . assertTrue ( ( ( allPulses . size ( ) ) > 0 ) )
testEmptyAuth ( ) { java . util . List < org . apache . hadoop . util . ZKUtil . ZKAuthInfo > result = org . apache . hadoop . util . ZKUtil . parseAuth ( "" ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return addrs . isEmpty ( ) ; }
org . junit . Assert . assertTrue ( result . isEmpty ( ) )
taskRunningStateHandlerTest ( ) { final org . apache . reef . webserver . ReefEventStateManager . TaskRunningStateHandler h = this . injector . getInstance ( ReefEventStateManager . TaskRunningStateHandler . class ) ; "<AssertPlaceHolder>" ; } getInstance ( java . lang . String ) { return getInstance ( newRmName , 0 , ...
org . junit . Assert . assertNotNull ( h )
testGetContentInfo ( ) { final org . apache . commons . vfs2 . FileSystemManager fsManager = org . apache . commons . vfs2 . VFS . getManager ( ) ; try ( final org . apache . commons . vfs2 . FileObject fo = fsManager . resolveFile ( "http://www.apache.org/licenses/LICENSE-2.0.txt" ) ; final org . apache . commons . vf...
org . junit . Assert . assertNotNull ( content )
testGetAll ( ) { com . mongodb . DBCollection coll = createMockCollection ( ) ; com . mongodb . DBCursor cursor = createMockCursor ( ) ; expect ( cursor . hasNext ( ) ) . andAnswer ( new org . easymock . IAnswer < java . lang . Boolean > ( ) { private int count = 0 ; @ net . bluemix . todo . store . Override public net...
org . junit . Assert . assertEquals ( testToDos , todos )
getLastClosedTransactionIdShouldFailWhenStoreIsClosed ( ) { org . neo4j . kernel . impl . store . MetaDataStore metaDataStore = newMetaDataStore ( ) ; metaDataStore . close ( ) ; try { metaDataStore . getLastClosedTransactionId ( ) ; org . junit . Assert . fail ( "Expected<sp>exception<sp>reading<sp>from<sp>MetaDataSto...
org . junit . Assert . assertThat ( e , org . hamcrest . Matchers . instanceOf ( org . neo4j . kernel . impl . store . IllegalStateException . class ) )
testProxySSL ( ) { org . apache . jackrabbit . oak . segment . file . FileStore storeS = serverFileStore . fileStore ( ) ; org . apache . jackrabbit . oak . segment . file . FileStore storeC = clientFileStore1 . fileStore ( ) ; org . apache . jackrabbit . oak . spi . state . NodeStore store = org . apache . jackrabbit ...
org . junit . Assert . assertEquals ( storeS . getHead ( ) , storeC . getHead ( ) )
givenEnumSingleton_whenMultithreadInstancesEquals_thenTrue ( ) { java . util . concurrent . ExecutorService executor = java . util . concurrent . Executors . newFixedThreadPool ( com . baeldung . singleton . synchronization . SingletonSynchronizationIntegrationTest . POOL_SIZE ) ; java . util . Set < com . baeldung . s...
org . junit . Assert . assertEquals ( 1 , resultSet . size ( ) )
testRadix10Pos ( ) { java . lang . String value = "2387627892347567398736473476" ; int radix = 16 ; java . math . BigInteger aNumber = new java . math . BigInteger ( value , radix ) ; java . lang . String result = aNumber . toString ( radix ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ! ( object...
org . junit . Assert . assertTrue ( result . equals ( value ) )
testGetColumnIds ( ) { java . lang . String columnName = org . sagebionetworks . table . cluster . SQLUtils . getColumnNameForId ( "123" ) ; org . sagebionetworks . table . cluster . DatabaseColumnInfo rowId = new org . sagebionetworks . table . cluster . DatabaseColumnInfo ( ) ; rowId . setColumnName ( TableConstants ...
org . junit . Assert . assertEquals ( expected , results )
beAbleToAddStudents ( ) { org . adaptiveplatform . surveys . dto . UserDto student = student ( ) ; group . addStudent ( student ) ; "<AssertPlaceHolder>" ; } isStudent ( org . adaptiveplatform . surveys . dto . UserDto ) { return rolesOf ( user ) . contains ( GroupRole . STUDENT ) ; }
org . junit . Assert . assertTrue ( group . isStudent ( student ) )
testWithInputformat ( ) { final java . lang . String inputformat = "inputformat" ; final org . apache . oozie . fluentjob . api . action . PipesBuilder builder = new org . apache . oozie . fluentjob . api . action . PipesBuilder ( ) ; builder . withInputformat ( inputformat ) ; final org . apache . oozie . fluentjob . ...
org . junit . Assert . assertEquals ( inputformat , pipes . getInputformat ( ) )
cascadeOneLevelAndVerifyInvocationOnLastMockOnly ( mockit . CascadingParametersTest$Foo , mockit . CascadingParametersTest$Bar ) { mockit . CascadingParametersTest . Bar fooBar = foo . getBar ( ) ; "<AssertPlaceHolder>" ; fooBar . doSomething ( ) ; new mockit . Verifications ( ) { { bar . doSomething ( ) ; } } ; } getB...
org . junit . Assert . assertSame ( bar , fooBar )
test ( ) { org . tests . model . basic . ResetBasicData . reset ( ) ; java . util . List < org . tests . model . basic . Customer > list = io . ebean . Ebean . find ( org . tests . model . basic . Customer . class ) . select ( "id,<sp>name" ) . order ( ) . desc ( "id" ) . findList ( ) ; io . ebean . EbeanServer server ...
org . junit . Assert . assertEquals ( ( - 1 ) , statusPos )
getLinkKeys ( ) { final java . util . Map < java . lang . String , java . lang . String > linkMap = accountNavigationBean . getLinkMap ( ) ; final java . util . List < java . lang . String > linkKeys = accountNavigationBean . getLinkKeys ( ) ; for ( java . lang . String key : linkKeys ) { "<AssertPlaceHolder>" ; } } co...
org . junit . Assert . assertTrue ( linkMap . containsKey ( key ) )
testGetTemplatesForResource ( ) { ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceEntity resource = f . createApplicationServer ( ) ; ch . puzzle . itc . mobiliar . business . template . entity . TemplateDescriptorEntity template = f . createTemplate ( "foo" , "foo" , targetPlatformId ) ; ch ...
org . junit . Assert . assertEquals ( 1 , templates . size ( ) )
testOWLAtomTypeMappingReader_Reader ( ) { org . openscience . cdk . config . atomtypes . OWLAtomTypeMappingReader reader = new org . openscience . cdk . config . atomtypes . OWLAtomTypeMappingReader ( new java . io . StringReader ( "" ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( reader )
testBlogPostListSerialization ( ) { com . ibm . sbt . services . client . base . datahandlers . EntityList < com . ibm . sbt . services . client . connections . blogs . BlogPost > posts = blogService . getAllPosts ( ) ; new com . ibm . sbt . services . client . SerializationUtil ( ) { @ com . ibm . sbt . services . cli...
org . junit . Assert . assertEquals ( true , ( ( allposts . size ( ) ) > 0 ) )
testDestroyWhileOpenFails ( ) { org . apache . hyracks . storage . common . IIndexAccessor accessor = createAccessor ( ) ; org . apache . hyracks . storage . common . IIndexCursor cursor = createCursor ( accessor ) ; java . util . List < org . apache . hyracks . storage . common . ISearchPredicate > predicates = create...
org . junit . Assert . assertTrue ( expectedExceptionThrown )
shouldNotBeValidIfAnyAreNotValid ( ) { java . util . List < javax . faces . component . UIComponent > components = createComponents ( 3 ) ; for ( int i = 0 ; i < ( components . size ( ) ) ; i ++ ) { javax . faces . component . UIComponent component = components . get ( i ) ; given ( ( ( javax . faces . component . Edit...
org . junit . Assert . assertThat ( info . isValid ( ) , org . hamcrest . Matchers . is ( false ) )
testProblemSqlIssue265 ( ) { java . lang . String sqls = org . apache . commons . io . IOUtils . toString ( net . sf . jsqlparser . statement . select . SelectTest . class . getResourceAsStream ( "large-sql-with-issue-265.txt" ) ) ; net . sf . jsqlparser . statement . select . Statements stmts = net . sf . jsqlparser ....
org . junit . Assert . assertEquals ( 2 , stmts . getStatements ( ) . size ( ) )
testHasValueThatOnNullValue ( ) { "<AssertPlaceHolder>" ; } hasValueThat ( org . hamcrest . Matcher ) { return new com . annimon . stream . test . hamcrest . OptionalIntMatcher . HasValueMatcher ( matcher ) ; }
org . junit . Assert . assertThat ( null , com . annimon . stream . test . hamcrest . OptionalIntMatcher . hasValueThat ( org . hamcrest . CoreMatchers . is ( 0 ) ) )
bindShouldReportNoExtensionsWhenNoFactoriesAvailable ( ) { org . kaazing . gateway . transport . nio . internal . socket . TcpExtensionFactory factory = org . kaazing . gateway . transport . nio . internal . socket . TcpExtensionFactory . newInstance ( new org . kaazing . gateway . transport . nio . internal . TcpExten...
org . junit . Assert . assertTrue ( extensions . isEmpty ( ) )
invertTest ( ) { int [ ] values = new int [ ] { 3 , 1 , 0 , 2 } ; int [ ] invert = new int [ ] { 2 , 1 , 3 , 0 } ; org . openscience . cdk . group . Permutation p = new org . openscience . cdk . group . Permutation ( values ) ; org . openscience . cdk . group . Permutation invP = new org . openscience . cdk . group . P...
org . junit . Assert . assertEquals ( invP , p . invert ( ) )
testTrueSvcConfigTransportHeaderFalse1 ( ) { boolean success = false ; try { com . ebay . soaframework . spf . impl . internal . config . ServiceConfigManager . getInstance ( ) . setConfigTestCase ( "configValidatePayloadTrue" ) ; com . ebay . marketplace . advertising . v1 . services . GetMessagesForTheDayRequest para...
org . junit . Assert . assertTrue ( success )
testDeleteConfValue_3 ( ) { java . lang . String propertyName = "" ; java . lang . String file = "abcde.xml" ; boolean result = xmlManipulator . deleteConfValue ( file , propertyName ) ; org . apache . commons . io . FileUtils . deleteQuietly ( new java . io . File ( file ) ) ; "<AssertPlaceHolder>" ; } deleteConfValue...
org . junit . Assert . assertEquals ( false , result )
testRoundTrip ( ) { com . hp . hpl . jena . rdf . model . Literal l = com . hp . hpl . jena . rdf . model . ResourceFactory . createTypedLiteral ( "1999-05-31T02:09:32Z" , XSDDatatype . XSDdateTime ) ; java . lang . String date = com . epimorphics . jsonrdf . RDFUtil . formatDateTime ( l , false ) ; com . hp . hpl . je...
org . junit . Assert . assertEquals ( l , lret )
assertNextForSkipAll ( ) { org . apache . shardingsphere . core . parse . old . parser . context . limit . Limit limit = new org . apache . shardingsphere . core . parse . old . parser . context . limit . Limit ( ) ; limit . setOffset ( new org . apache . shardingsphere . core . parse . old . parser . context . limit ....
org . junit . Assert . assertFalse ( actual . next ( ) )
nietValideGeefDetailsPersoonHistorievormOnbekend ( ) { final nl . bzk . brp . model . internbericht . ProtocolleringOpdracht protocolleringOpdracht = maakProtocolleringOpdracht ( SoortDienst . GEEF_DETAILS_PERSOON , null , datumAanvangMaterielePeriode , datumEindeMaterielePeriode , datumTijdAanvangFormelePeriode , datu...
org . junit . Assert . assertFalse ( protocolleringOpdracht . isValide ( ) )
testMetricNameWithMatchingSingleChar ( ) { java . lang . String glob = "foo?" ; java . lang . String expectedRegex = "foo." ; com . rackspacecloud . blueflood . utils . GlobPattern pattern = new com . rackspacecloud . blueflood . utils . GlobPattern ( glob ) ; "<AssertPlaceHolder>" ; } compiled ( ) { return compiled ; ...
org . junit . Assert . assertEquals ( expectedRegex , pattern . compiled ( ) . toString ( ) )
tuple_4 ( ) { org . apache . jena . atlas . lib . tuple . Tuple < java . lang . Integer > tuple = org . apache . jena . atlas . lib . tuple . TupleFactory . create4 ( 9 , 8 , 7 , 6 ) ; "<AssertPlaceHolder>" ; org . apache . jena . atlas . lib . tuple . TestTuple . check ( tuple ) ; } len ( ) { return 0 ; }
org . junit . Assert . assertEquals ( 4 , tuple . len ( ) )
testShouldNotCreateDirectoryForNonNativeTableInDumpDirectory ( ) { java . lang . String createTableQuery = "CREATE<sp>TABLE<sp>custom_serdes(<sp>serde_id<sp>bigint<sp>COMMENT<sp>'from<sp>deserializer',<sp>name<sp>string<sp>" + ( ( ( ( ( ( "CREATE<sp>TABLE<sp>custom_serdes(<sp>serde_id<sp>bigint<sp>COMMENT<sp>'from<sp>d...
org . junit . Assert . assertFalse ( fs . exists ( cSerdesTableDumpLocation ) )
testBuildWithDisabledStatusCOnstraints ( ) { unit . setActive ( false ) ; org . lnu . is . domain . admin . unit . AdminUnit context = new org . lnu . is . domain . admin . unit . AdminUnit ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>AdminUnit<sp>e<sp>WHERE<sp>e.crtUserGroup<sp>IN<sp>(:userGroups)<sp>...
org . junit . Assert . assertEquals ( expected , actualQuery )
consumerShouldSeeOwnEntitlements ( ) { consumerResource . bind ( consumer . getUuid ( ) , pool . getId ( ) . toString ( ) , null , 1 , null , null , false , null , null ) ; consumerResource . bind ( consumer . getUuid ( ) , pool . getId ( ) . toString ( ) , null , 1 , null , null , false , null , null ) ; consumerResou...
org . junit . Assert . assertEquals ( 3 , consumerResource . listEntitlements ( consumer . getUuid ( ) , null , true , "" , new java . util . ArrayList ( ) , null ) . size ( ) )
testContextDestroyCalled ( javax . enterprise . inject . Instance ) { org . jboss . weld . tests . instance . destroy . normal . CustomScopedComponent component = instance . get ( ) ; org . jboss . weld . tests . instance . destroy . normal . CustomAlterableContext . reset ( ) ; instance . destroy ( component ) ; "<Ass...
org . junit . Assert . assertTrue ( org . jboss . weld . tests . instance . destroy . normal . CustomAlterableContext . isDestroyCalled ( ) )
handleMessage ( ) { org . talend . esb . security . saml . STSRESTOutInterceptor i = new org . talend . esb . security . saml . STSRESTOutInterceptor ( ) ; org . apache . cxf . message . Message message = createMock ( org . apache . cxf . message . Message . class ) ; org . apache . cxf . ws . security . trust . STSCli...
org . junit . Assert . assertSame ( stsClient , i . getStsClient ( ) )
testNN_AtmCorrGetNumInputNode ( ) { int numNodesInput = - 1 ; int numNodesOutput = 1 ; int numInputNode = org . esa . s3tbx . fub . wew . util . NN_TSM . compute ( in , numNodesInput , out , numNodesOutput , width , mask , 0 , a ) ; "<AssertPlaceHolder>" ; } compute ( float [ ] [ ] , int , float [ ] [ ] , int , int , i...
org . junit . Assert . assertEquals ( 18 , numInputNode )
testSetOutput ( ) { java . lang . String outputMsg = "A<sp>test<sp>output<sp>message" ; fixture . setOutput ( outputMsg ) ; if ( ( fixture . getOutput ( ) ) == null ) { org . junit . Assert . fail ( ) ; } else { "<AssertPlaceHolder>" ; } } getOutput ( ) { return results . getOutput ( ) ; }
org . junit . Assert . assertEquals ( outputMsg , fixture . getOutput ( ) )
equals_withUnknownType_returnsTrue ( ) { org . openengsb . core . edbi . jdbc . sql . DataType varchar = new org . openengsb . core . edbi . jdbc . sql . DataType ( "VARCHAR" ) ; org . openengsb . core . edbi . jdbc . sql . DataType other = new org . openengsb . core . edbi . jdbc . sql . DataType ( "VARCHAR" ) ; "<Ass...
org . junit . Assert . assertTrue ( varchar . equals ( other ) )
shouldReturnItselfIfRequestedToGetACellWithAnAbsentOptionalName ( ) { com . facebook . buck . core . cell . Cell cell = new com . facebook . buck . core . cell . TestCellBuilder ( ) . build ( ) ; com . facebook . buck . core . model . BuildTarget target = com . facebook . buck . core . model . BuildTargetFactory . newI...
org . junit . Assert . assertSame ( cell , owner )
creatingGroupsFromSourcePathsRemovesLongestCommonPrefix ( ) { com . google . common . collect . ImmutableList < com . facebook . buck . core . sourcepath . SourcePath > input = com . google . common . collect . ImmutableList . of ( com . facebook . buck . core . sourcepath . FakeSourcePath . of ( "Lib/Foo/File1.h" ) , ...
org . junit . Assert . assertEquals ( expected , actual )
getSchemaTypeInfo ( ) { conf . set ( CorcInputFormat . SCHEMA_TYPE_INFO , "struct<a:string,b:string>" ) ; org . apache . hadoop . hive . serde2 . typeinfo . StructTypeInfo typeInfo = new com . hotels . corc . StructTypeInfoBuilder ( ) . add ( "a" , TypeInfoFactory . stringTypeInfo ) . add ( "b" , TypeInfoFactory . stri...
org . junit . Assert . assertThat ( com . hotels . corc . mapred . CorcInputFormat . getSchemaTypeInfo ( conf ) , org . hamcrest . CoreMatchers . is ( typeInfo ) )
NewScmsRestrictionTests ( ) { byte expectedConfigurationData = 2 ; com . microsoft . windowsazure . services . media . implementation . templates . playreadylicense . ScmsRestriction scmsRestriction = new com . microsoft . windowsazure . services . media . implementation . templates . playreadylicense . ScmsRestriction...
org . junit . Assert . assertEquals ( expectedConfigurationData , resultConfigurationData )
getIntShouldWorkLittleEndianIndex0 ( ) { java . nio . ByteBuffer buf = java . nio . ByteBuffer . allocate ( 4 ) ; buf . order ( org . kaazing . gateway . util . LITTLE_ENDIAN ) ; buf . putInt ( 12345678 ) ; buf . flip ( ) ; int result = org . kaazing . gateway . util . Utils . getInt ( buf , 0 ) ; int expected = buf . ...
org . junit . Assert . assertEquals ( expected , result )
shouldCountDistinctValues ( ) { org . neo4j . kernel . api . impl . schema . writer . LuceneIndexWriter writer = index . getIndexWriter ( ) ; int expectedCount = 10000 ; for ( int i = 0 ; i < expectedCount ; i ++ ) { org . neo4j . values . storable . Value value = random . nextValue ( ) ; writer . addDocument ( org . n...
org . junit . Assert . assertEquals ( expectedCount , actualCount )
clusterKnownConfigurationErrorTest ( ) { initData ( ) ; when ( mockScalingRuleService . getRule ( 1 ) ) . thenReturn ( rule ) ; when ( mockClusterService . getCluster ( 1 ) ) . thenReturn ( cluster ) ; when ( mockHealthMonitoringService . getClusterLoad ( machine , PeriodicAutoscalerItemProcessor . METRIC_NAMES , Perio...
org . junit . Assert . assertNull ( job )
testGetHazelcastVersionFromJarOrNull_whenJarContainsNoVersion_thenReturnNull ( ) { java . io . File file = new java . io . File ( ( ( com . hazelcast . simulator . utils . BuildInfoUtilsTest . RESOURCE_PATH ) + "build-info-no-version.jar" ) ) . getAbsoluteFile ( ) ; "<AssertPlaceHolder>" ; } getHazelcastVersionFromJarO...
org . junit . Assert . assertNull ( com . hazelcast . simulator . utils . BuildInfoUtils . getHazelcastVersionFromJarOrNull ( file . getAbsolutePath ( ) ) )
testIdentityPreProcessing ( ) { java . lang . String script = "result<sp>=<sp>raw;" ; final net . meisen . dissertation . impl . dataintegration . ScriptPreProcessor processor = create ( script ) ; final net . meisen . dissertation . impl . datasets . SingleStaticDataSet rec = new net . meisen . dissertation . impl . d...
org . junit . Assert . assertEquals ( rec , processor . process ( rec ) )
testGuard ( ) { org . eclipse . xtext . validation . AbstractDeclarativeValidator validator = new org . eclipse . xtext . validation . AbstractDeclarativeValidator ( ) { @ org . eclipse . xtext . validation . Check public void guarded ( org . eclipse . emf . ecore . EClass x ) { guard ( "" . equals ( x . getName ( ) ) ...
org . junit . Assert . assertTrue ( diagnostics . toString ( ) , diagnostics . isEmpty ( ) )
testGetStepExecutionFailureCount ( ) { prepareServiceWithMultipleStepExecutions ( ) ; "<AssertPlaceHolder>" ; } getFailureCount ( ) { int count = 0 ; int start = 0 ; int pageSize = 100 ; java . util . Collection < org . springframework . batch . core . StepExecution > stepExecutions ; do { stepExecutions = jobService ....
org . junit . Assert . assertEquals ( 0 , metrics . getFailureCount ( ) )
testConstruct_nullClient1_assertIllegalArgumentException ( ) { boolean exceptionOccured = false ; try { new org . nhindirect . common . rest . MockService ( "http://localhost/mock" , null ) ; } catch ( java . lang . IllegalArgumentException e ) { exceptionOccured = true ; } "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( exceptionOccured )
shouldEvaluateVerticesEquivalentWithSuppliedIdsViaIterators ( ) { final org . apache . tinkerpop . gremlin . structure . Vertex v = graph . addVertex ( T . id , graphProvider . convertId ( "1" , org . apache . tinkerpop . gremlin . structure . Vertex . class ) ) ; final org . apache . tinkerpop . gremlin . structure . ...
org . junit . Assert . assertEquals ( v , u )
testLookupByChallengeExactMatch ( ) { dispatch . register ( "http://localhost:8000" , sampleHandler ) ; org . kaazing . netx . http . auth . ChallengeRequest challengeRequest = new org . kaazing . netx . http . auth . ChallengeRequest ( "http://localhost:8000" , "Application<sp>test_challenge<sp>foo" ) ; org . kaazing ...
org . junit . Assert . assertSame ( sampleHandler , challengeHandler2 )
testTsvParserNoTimestampValue ( ) { org . apache . hadoop . hbase . mapreduce . ImportTsv . TsvParser parser = new org . apache . hadoop . hbase . mapreduce . ImportTsv . TsvParser ( "HBASE_ROW_KEY,col_a,HBASE_TS_KEY" , "\t" ) ; "<AssertPlaceHolder>" ; byte [ ] line = org . apache . hadoop . hbase . util . Bytes . toBy...
org . junit . Assert . assertEquals ( 2 , parser . getTimestampKeyColumnIndex ( ) )