input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
getFilename ( ) { org . opengrok . indexer . history . Annotation instance = new org . opengrok . indexer . history . Annotation ( "testfile.tst" ) ; "<AssertPlaceHolder>" ; } getFilename ( ) { return filename ; }
org . junit . Assert . assertEquals ( "testfile.tst" , instance . getFilename ( ) )
testCompany ( ) { com . baidu . unbiz . fluentvalidator . dto . Company company = com . baidu . unbiz . fluentvalidator . dto . CompanyBuilder . buildSimple ( ) ; com . baidu . unbiz . fluentvalidator . Result ret = com . baidu . unbiz . fluentvalidator . FluentValidator . checkAll ( ) . on ( company , new com . baidu ...
org . junit . Assert . assertThat ( ret . isSuccess ( ) , org . hamcrest . core . Is . is ( true ) )
testRoot ( ) { javax . measure . Unit < ? > result = one . root ( 2 ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( result , one )
testPostfixVariables ( ) { java . lang . String expr ; double expected ; double x = 4.5334332 ; double pi = java . lang . Math . Math . PI ; expr = "x<sp>*<sp>pi" ; expected = x * pi ; net . objecthunter . exp4j . Expression e = new net . objecthunter . exp4j . ExpressionBuilder ( expr ) . variables ( "x" , "pi" ) . bu...
org . junit . Assert . assertTrue ( ( expected == ( e . setVariable ( "x" , x ) . setVariable ( "pi" , pi ) . evaluate ( ) ) ) )
documentExistsIfMatch ( ) { final com . arangodb . entity . DocumentCreateEntity < java . lang . String > createResult = db . collection ( com . arangodb . ArangoCollectionTest . COLLECTION_NAME ) . insertDocument ( "{\"_key\":\"abc\"}" , null ) ; final com . arangodb . model . DocumentExistsOptions options = new com ....
org . junit . Assert . assertThat ( exists , org . hamcrest . Matchers . is ( true ) )
testToString ( ) { com . google . zxing . qrcode . encoder . ByteMatrix array = new com . google . zxing . qrcode . encoder . ByteMatrix ( 3 , 3 ) ; array . set ( 0 , 0 , 0 ) ; array . set ( 1 , 0 , 1 ) ; array . set ( 2 , 0 , 0 ) ; array . set ( 0 , 1 , 1 ) ; array . set ( 1 , 1 , 0 ) ; array . set ( 2 , 1 , 1 ) ; arr...
org . junit . Assert . assertEquals ( expected , array . toString ( ) )
shouldParseFromString ( ) { com . streamsets . pipeline . stage . origin . mysql . GtidSourceOffset offset = new com . streamsets . pipeline . stage . origin . mysql . GtidSourceOffset ( gtidSet1 ) . withIncompleteTransaction ( gtid1 , 300 ) . withIncompleteTransaction ( gtid2 , 500 ) ; java . lang . String str = offse...
org . junit . Assert . assertThat ( offset1 , org . hamcrest . CoreMatchers . is ( offset ) )
isRemoteCollection ( ) { "<AssertPlaceHolder>" ; } getCollection ( ) { return collection ; }
org . junit . Assert . assertTrue ( getCollection ( ) . isRemoteCollection ( ) )
readAndParseInvalidYinFileTest ( ) { org . opendaylight . yangtools . yang . model . api . SchemaContext result = org . opendaylight . yangtools . yang . parser . rfc7950 . reactor . RFC7950Reactors . defaultReactor ( ) . newBuild ( ) . addSource ( org . opendaylight . yangtools . yang . stmt . yin . YinFileStmtTest . ...
org . junit . Assert . assertNotNull ( result )
renderConfluencePage_asciiDocWithImageInDifferentFolder_returnsConfluencePageContentWithImageAttachmentFileNameOnly ( ) { java . lang . String adocContent = "image::sub-folder/sunset.jpg[]" ; org . sahli . asciidoc . confluence . publisher . converter . AsciidocConfluencePage asciidocConfluencePage = org . sahli . asci...
org . junit . Assert . assertThat ( asciidocConfluencePage . content ( ) , org . hamcrest . Matchers . is ( expectedContent ) )
testIsDate ( ) { boolean b = org . firesoa . common . util . JavaDataTypeConvertor . isDate ( "java.util.Date" ) ; "<AssertPlaceHolder>" ; } isDate ( java . lang . String ) { if ( org . apache . commons . lang . StringUtils . isEmpty ( dataTypeStr ) ) { return false ; } java . lang . String s = dataTypeStr . trim ( ) ;...
org . junit . Assert . assertTrue ( b )
testOnCopySelectionCommandExecuted ( ) { pasteSelectionSessionCommand . bind ( session ) ; pasteSelectionSessionCommand . listen ( statusCallback ) ; pasteSelectionSessionCommand . onCopySelectionCommandExecuted ( new org . kie . workbench . common . stunner . core . client . session . command . impl . CopySelectionSes...
org . junit . Assert . assertTrue ( command . isEnabled ( ) )
testAddSegmentIntSegment ( ) { org . pb . x12 . X12Simple x12 = new org . pb . x12 . X12Simple ( new org . pb . x12 . Context ( '~' , '*' , ':' ) ) ; x12 . addSegment ( "ISA*ISA01*ISA02*ISA03" ) ; x12 . addSegment ( "ST*ST01*ST02*ST03" ) ; org . pb . x12 . Segment s = new org . pb . x12 . Segment ( new org . pb . x12 ....
org . junit . Assert . assertEquals ( "GS*GS01*GS02*GS03" , x12 . getSegment ( 1 ) . toString ( ) )
testGetPortletInvocationWhitelistFromBundle ( ) { java . util . Set < java . lang . String > portletInvocationWhitelist = com . liferay . portal . kernel . security . auth . AuthTokenWhitelistUtil . getPortletInvocationWhitelist ( ) ; java . lang . String action = com . liferay . portal . security . auth . bundle . aut...
org . junit . Assert . assertTrue ( portletInvocationWhitelist . toString ( ) , portletInvocationWhitelist . contains ( action ) )
testDoDestroy ( ) { control . bind ( session ) ; control . doDestroy ( ) ; "<AssertPlaceHolder>" ; } getMousePanMediator ( ) { return ( ( org . kie . workbench . common . dmn . client . widgets . layer . MousePanMediatorControl ) ( getSession ( ) . getCanvasControl ( org . kie . workbench . common . dmn . client . widg...
org . junit . Assert . assertNull ( control . getMousePanMediator ( ) )
testInstanceReader ( ) { eu . esdihumboldt . hale . common . schema . model . Schema schema = readSchema ( ) ; eu . esdihumboldt . hale . common . instance . model . InstanceCollection instances = readInstances ( schema ) ; "<AssertPlaceHolder>" ; } hasSize ( ) { return false ; }
org . junit . Assert . assertTrue ( instances . hasSize ( ) )
testGetError ( ) { System . out . println ( "getError" ) ; com . pearson . docussandra . domain . event . IndexCreatedEvent instance = com . pearson . docussandra . testhelper . Fixtures . createTestIndexCreationStatus ( ) ; java . lang . String result = instance . getFatalError ( ) ; "<AssertPlaceHolder>" ; } getFatal...
org . junit . Assert . assertNull ( result )
testGetFunctionReturnValue ( ) { org . talend . dq . dbms . DbmsLanguage dbmsLanguage = org . talend . dq . dbms . DbmsLanguageFactory . createDbmsLanguage ( "SQL" , "1.0" ) ; java . lang . String regularfunctionReturnValue = dbmsLanguage . getFunctionReturnValue ( ) ; "<AssertPlaceHolder>" ; } getFunctionReturnValue (...
org . junit . Assert . assertEquals ( StringUtils . EMPTY , regularfunctionReturnValue )
testHostNameStartingGreaterThan255 ( ) { java . lang . String label = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ; java . lang . String hostname = ( ( ( ( ( ( label + "." ) + label ) + "." ) + label ) + "." ) + label ) + ".extrachars" ; "<AssertPlaceHolder>" ; } validateHostName ( java . lang . S...
org . junit . Assert . assertFalse ( com . emc . storageos . systemservices . impl . validate . PropertiesConfigurationValidator . validateHostName ( hostname ) )
testGetBlobsPropertiesEmpty ( ) { org . nuxeo . ecm . core . api . DocumentModel doc = new org . nuxeo . ecm . core . api . impl . DocumentModelImpl ( "/" , "doc" , "ComplexDoc" ) ; java . util . List < org . nuxeo . ecm . core . api . model . Property > properties = new org . nuxeo . ecm . core . utils . BlobsExtracto...
org . junit . Assert . assertEquals ( 0 , properties . size ( ) )
getAndroidUserInterfaceShouldReturnObjectFromConstructor ( ) { final net . usikkert . kouchat . android . chatwindow . AndroidUserInterface ui = mock ( net . usikkert . kouchat . android . chatwindow . AndroidUserInterface . class ) ; final net . usikkert . kouchat . android . service . ChatServiceBinder binder = new n...
org . junit . Assert . assertSame ( ui , binder . getAndroidUserInterface ( ) )
testGetTicksDisplayedOK ( ) { axes1 . setTicksDisplayed ( PlottingStyle . Y ) ; "<AssertPlaceHolder>" ; } getTicksDisplayed ( ) { return ticksDisplayed . getValue ( ) ; }
org . junit . Assert . assertEquals ( PlottingStyle . Y , group . getTicksDisplayed ( ) )
shouldReturnEmptyArrayOnNoJsonObject ( ) { io . searchbox . core . CatResult catResult = new io . searchbox . core . CatResult ( new com . google . gson . Gson ( ) ) ; "<AssertPlaceHolder>" ; } getPlainText ( ) { com . google . gson . JsonObject jsonObject = getJsonObject ( ) ; if ( ( ( ( jsonObject != null ) && ( ( ge...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ 0 ] [ 0 ] , catResult . getPlainText ( ) )
testGetDefaultTableViewColumnsFileView ( ) { java . util . List < org . sagebionetworks . repo . model . table . ColumnModel > expected = new java . util . LinkedList < org . sagebionetworks . repo . model . table . ColumnModel > ( ) ; for ( org . sagebionetworks . repo . model . table . EntityField field : org . sageb...
org . junit . Assert . assertEquals ( expected , results )
testIsValidForZeroLengthPnfsId ( ) { "<AssertPlaceHolder>" ; } isValid ( java . lang . String ) { java . util . regex . Matcher m = diskCacheV111 . util . PnfsId . VALID_ID_PATTERN . matcher ( id ) ; return m . matches ( ) ; }
org . junit . Assert . assertFalse ( diskCacheV111 . util . PnfsId . isValid ( "" ) )
testRemoveByApplicationToken ( ) { org . kaaproject . kaa . server . common . dao . model . sql . Tenant ten = generateTenant ( ) ; org . kaaproject . kaa . server . common . dao . model . sql . Application app = generateApplication ( ten ) ; java . lang . String token = app . getApplicationToken ( ) ; applicationDao ....
org . junit . Assert . assertNull ( applicationDao . findByApplicationToken ( token ) )
testAsyncConsume ( ) { com . rabbitmq . client . AMQP . Queue . BindOk bindOk = template . execute ( new net . joshdevins . rabbitmq . client . ha . it . TestChannelCallback ( ) ) ; "<AssertPlaceHolder>" ; org . springframework . amqp . rabbit . listener . SimpleMessageListenerContainer container = new org . springfram...
org . junit . Assert . assertNotNull ( bindOk )
shouldLaunchJavaApplicationUsingSystemPropertyWithSpaces ( ) { com . oracle . bedrock . runtime . remote . RemotePlatform platform = getRemotePlatform ( ) ; java . lang . String message = "Hello<sp>World" ; try ( com . oracle . bedrock . runtime . java . JavaApplication application = platform . launch ( com . oracle . ...
org . junit . Assert . assertThat ( propertyValue , org . hamcrest . CoreMatchers . is ( message ) )
test ( ) { io . ebean . Ebean . delete ( org . tests . model . basic . TSMaster . class , 10000 ) ; org . tests . model . basic . TSMaster m0 = new org . tests . model . basic . TSMaster ( ) ; m0 . setId ( 10000 ) ; m0 . setName ( "master1" ) ; io . ebean . Ebean . save ( m0 ) ; org . tests . model . basic . TSDetail t...
org . junit . Assert . assertNotNull ( fetchedDetail )
testCreateUeberCertificateRegenerate ( ) { org . candlepin . auth . Principal principal = setupPrincipal ( owner , Access . ALL ) ; org . candlepin . model . Owner owner = org . candlepin . test . TestUtil . createOwner ( ) ; org . candlepin . model . UeberCertificate entCert = mock ( org . candlepin . model . UeberCer...
org . junit . Assert . assertEquals ( expected , result )
testGetPolicyByName_exceptionInQuery_assertException ( ) { final javax . persistence . EntityManager manager = mock ( javax . persistence . EntityManager . class ) ; doThrow ( new java . lang . RuntimeException ( "Just<sp>Passing<sp>Through" ) ) . when ( manager ) . createQuery ( ( ( java . lang . String ) ( any ( ) ) ...
org . junit . Assert . assertTrue ( exceptionOccured )
test_sum_empty_long_sequence ( ) { int [ ] a = new int [ ] { } ; int result = server . sum_long_sequence ( a ) ; "<AssertPlaceHolder>" ; } sum_long_sequence ( int [ ] ) { int sum = 0 ; for ( int i = 0 ; i < ( seq . length ) ; i ++ ) { sum += seq [ i ] ; } return sum ; }
org . junit . Assert . assertEquals ( 0 , result )
memberOf ( ) { final com . b2international . index . query . Expression actual = eval ( ( "^" + ( com . b2international . snowowl . snomed . common . SnomedConstants . Concepts . REFSET_DESCRIPTION_TYPE ) ) ) ; final com . b2international . index . query . Expression expected = activeMemberOf ( Concepts . REFSET_DESCRI...
org . junit . Assert . assertEquals ( expected , actual )
encodeResponse ( ) { java . util . UUID uuid = new java . util . UUID ( 1 , 2 ) ; byte [ ] data = new byte [ ] { 3 , 4 , 5 } ; io . netty . channel . embedded . EmbeddedChannel channel = new io . netty . channel . embedded . EmbeddedChannel ( new org . apache . jackrabbit . oak . segment . standby . codec . GetSegmentR...
org . junit . Assert . assertEquals ( expected , buffer )
testGetValue ( ) { com . eclipsesource . tabris . ui . PageData data = new com . eclipsesource . tabris . ui . PageData ( ) ; data . set ( "foo" , "bar" ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String , java . lang . Class ) { T result = null ; java . lang . Object value = store . get ( key ) ; if ( value != n...
org . junit . Assert . assertEquals ( "bar" , data . get ( "foo" , java . lang . String . class ) )
testRemovedDurableSubDeletes ( ) { java . lang . String filter = "$a='A1'<sp>AND<sp>(($b=true<sp>AND<sp>$c=true)<sp>OR<sp>($d='D1'<sp>OR<sp>$d='D2'))" ; javax . jms . Connection con = createConnection ( "cliId1" ) ; javax . jms . Session session = con . createSession ( false , Session . AUTO_ACKNOWLEDGE ) ; session . c...
org . junit . Assert . assertEquals ( 0 , listener . count )
testUMaskParser ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; for ( org . apache . hadoop . fs . permission . FsAction . FsAction u : org . apache . hadoop . fs . permission . FsAction . FsAction . values ( ) ) { for ( org . apache . hadoop . fs . permi...
org . junit . Assert . assertEquals ( f , fromConf )
testFetchByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . PasswordPolicyRel newPasswordPolicyRel = addPasswordPolicyRel ( ) ; com . liferay . portal . kernel . model . PasswordPolicyRel existingPasswordPolicyRel = _persistence . fetchByPrimaryKey ( newPasswordPolicyRel . getPrimaryKey ( ) ) ; "<Asse...
org . junit . Assert . assertEquals ( existingPasswordPolicyRel , newPasswordPolicyRel )
testGetAttribute ( ) { com . amadeus . session . repository . redis . RedisFacade facade = mock ( com . amadeus . session . repository . redis . RedisFacade . class ) ; try ( com . amadeus . session . repository . redis . RedisSessionRepository rsr = new com . amadeus . session . repository . redis . RedisSessionReposi...
org . junit . Assert . assertEquals ( "Result" , res )
testPermute ( ) { org . nd4j . autodiff . samediff . SameDiff sameDiff = org . nd4j . autodiff . samediff . SameDiff . create ( ) ; org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . ops . transforms . Transforms . sigmoid ( org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 6 , 6 ) . reshape...
org . junit . Assert . assertArrayEquals ( new long [ ] { 3 , 2 } , result . getShape ( ) )
readData_InvalidUserEvent ( ) { org . mockito . Mockito . when ( filereader . fileExist ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( true ) ; org . mockito . Mockito . when ( filereader . readAllLine ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( new java . lang . String [ ] { "1414108436....
org . junit . Assert . assertEquals ( 1 , listUserEvent . size ( ) , 0 )
getDescription ( ) { org . phenotips . translation . TranslationManager tm = this . mocker . getInstance ( org . phenotips . translation . TranslationManager . class ) ; when ( tm . translate ( "phenotips.permissions.visibility.public.description" ) ) . thenReturn ( "All<sp>registered<sp>users<sp>can<sp>view<sp>public<...
org . junit . Assert . assertEquals ( "All<sp>registered<sp>users<sp>can<sp>view<sp>public<sp>cases." , this . mocker . getComponentUnderTest ( ) . getDescription ( ) )
TestCorrectEnvMap ( ) { com . vmware . admiral . compute . kubernetes . entities . pods . EnvVar e = new com . vmware . admiral . compute . kubernetes . entities . pods . EnvVar ( ) ; e . name = "name" ; e . value = "val" ; java . lang . String env = com . vmware . admiral . adapter . kubernetes . KubernetesContainerSt...
org . junit . Assert . assertEquals ( ( ( ( e . name ) + "=" ) + ( e . value ) ) , env )
testVerzendendeGemeente ( ) { final nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst dbPersoonslijst = new nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijstBuilder ( ) . build ( ) ; setup ( java . util . Collections . singletonList ( dbPersoonslijst ) , java . util . Collections . s...
org . junit . Assert . assertFalse ( subject . controleer ( new nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext ( null , null , null , null ) ) )
testEvaluateTwoIndexTwoVarOrder1 ( ) { conn . add ( obj , RDFS . LABEL , org . apache . rya . indexing . external . PrecompJoinOptimizerIT . VF . createLiteral ( "label" ) ) ; conn . add ( obj2 , RDFS . LABEL , org . apache . rya . indexing . external . PrecompJoinOptimizerIT . VF . createLiteral ( "label2" ) ) ; final...
org . junit . Assert . assertEquals ( 2 , crh . getCount ( ) )
testDeprecateImage ( ) { initializeExpectedImage ( 3 ) ; expect ( compute . getOptions ( ) ) . andReturn ( mockOptions ) ; com . google . cloud . compute . deprecated . Operation operation = new com . google . cloud . compute . deprecated . Operation . Builder ( serviceMockReturnsOptions ) . setOperationId ( com . goog...
org . junit . Assert . assertSame ( operation , image . deprecate ( status ) )
testGetNumComponentsWithValidImage ( ) { java . nio . file . Path file = edu . illinois . library . cantaloupe . test . TestUtil . getImage ( "jp2-5res-rgb-64x56x8-monotiled-lossy.jp2" ) ; try ( javax . imageio . stream . ImageInputStream is = javax . imageio . ImageIO . createImageInputStream ( file . toFile ( ) ) ) {...
org . junit . Assert . assertEquals ( 3 , instance . getNumComponents ( ) )
asSingle ( ) { biweekly . io . json . JCalValue value = new biweekly . io . json . JCalValue ( new biweekly . io . json . JsonValue ( "value1" ) , new biweekly . io . json . JsonValue ( "value2" ) ) ; "<AssertPlaceHolder>" ; } asSingle ( ) { if ( values . isEmpty ( ) ) { return "" ; } biweekly . io . json . JsonValue f...
org . junit . Assert . assertEquals ( "value1" , value . asSingle ( ) )
monitorJobShouldGetPriorityOverridingJobDefinitionPriorityWithCascade ( ) { org . camunda . bpm . engine . batch . Batch batch = helper . migrateProcessInstancesAsync ( 1 ) ; org . camunda . bpm . engine . management . JobDefinition monitorJobDefinition = helper . getMonitorJobDefinition ( batch ) ; helper . executeSee...
org . junit . Assert . assertEquals ( org . camunda . bpm . engine . test . api . mgmt . BatchPriorityTest . CUSTOM_PRIORITY , monitorJob . getPriority ( ) )
testLookupSuccessfull ( ) { org . opengis . referencing . crs . CoordinateReferenceSystem crs = org . geotools . referencing . CRS . decode ( "EPSG:42101" ) ; java . lang . String code = org . geotools . referencing . CRS . lookupIdentifier ( crs , true ) ; "<AssertPlaceHolder>" ; } lookupIdentifier ( org . geotools . ...
org . junit . Assert . assertEquals ( "EPSG:42101" , code )
testNullTrees ( ) { try ( org . locationtech . geogig . storage . AutoCloseableIterator < org . locationtech . geogig . model . DiffEntry > diffs = diffTree . setOldTree ( ObjectId . NULL ) . setNewTree ( ObjectId . NULL ) . call ( ) ) { "<AssertPlaceHolder>" ; } } hasNext ( ) { if ( closed ) { return false ; } if ( ( ...
org . junit . Assert . assertFalse ( diffs . hasNext ( ) )
checkSettings ( ) { mDevice . pressHome ( ) ; android . support . test . uiautomator . UiObject allAppsButton = new android . support . test . uiautomator . UiObject ( new android . support . test . uiautomator . UiSelector ( ) . description ( "Apps" ) ) ; allAppsButton . clickAndWaitForNewWindow ( ) ; android . suppor...
org . junit . Assert . assertThat ( settingsValidation . exists ( ) , equalTo ( true ) )
cu_not_generated_without_project ( ) { harness . intialize ( null ) ; org . springframework . ide . vscode . commons . util . text . TextDocument doc = new org . springframework . ide . vscode . commons . util . text . TextDocument ( harness . createTempUri ( null ) , org . springframework . ide . vscode . commons . ut...
org . junit . Assert . assertNull ( cu )
appendMockVerifying_A$StringBuilder$int_depth1 ( ) { java . lang . StringBuilder buf = new java . lang . StringBuilder ( ) ; int depth = 1 ; generator . appendMockVerifying ( buf , depth ) ; "<AssertPlaceHolder>" ; } toString ( ) { return this . name ; }
org . junit . Assert . assertEquals ( "" , buf . toString ( ) )
notes ( ) { "<AssertPlaceHolder>" ; } notes ( ) { org . junit . Assert . assertThat ( facebook . notes ( ) , org . hamcrest . CoreMatchers . instanceOf ( facebook4j . NoteMethods . class ) ) ; }
org . junit . Assert . assertThat ( facebook . notes ( ) , org . hamcrest . CoreMatchers . instanceOf ( facebook4j . NoteMethods . class ) )
checkDate8 ( ) { char y0 = '2' ; char y1 = '' ; char y2 = '0' ; char y3 = '࠰' ; char M0 = '1' ; char M1 = '
org . junit . Assert . assertEquals ( false , retval )
testComputeJTSPeerWithNullGeometry ( ) { toTest = new ddf . catalog . impl . filter . JTSGeometryWrapper ( null ) ; "<AssertPlaceHolder>" ; } computeJTSPeer ( ) { return geo ; }
org . junit . Assert . assertNull ( toTest . computeJTSPeer ( ) )
buildStorageEngine_withUnrecognisedEngineType ( ) { final java . lang . String engineType = "blah" ; uk . co . flax . biosolr . ontology . config . StorageConfiguration config = mock ( uk . co . flax . biosolr . ontology . config . StorageConfiguration . class ) ; final java . util . Map < java . lang . String , uk . c...
org . junit . Assert . assertNull ( engine )
testGetAccessToken ( ) { javax . servlet . http . HttpServletRequest request = createStrictMock ( javax . servlet . http . HttpServletRequest . class ) ; expect ( request . getParameter ( OAuth . OAUTH_BEARER_TOKEN ) ) . andStubReturn ( "sometoken" ) ; replay ( request ) ; org . apache . oltu . oauth2 . rs . extractor ...
org . junit . Assert . assertEquals ( "sometoken" , bte . getAccessToken ( request ) )
testMemberListExistingMembers ( ) { org . apache . jackrabbit . oak . security . user . MembershipProvider mp = ( ( org . apache . jackrabbit . oak . security . user . UserManagerImpl ) ( getUserManager ( root ) ) ) . getMembershipProvider ( ) ; try { mp . setMembershipSizeThreshold ( 5 ) ; for ( int i = 0 ; i < 10 ; i...
org . junit . Assert . assertFalse ( failed . isEmpty ( ) )
testParseSuppressionRulesV1dot0 ( ) { java . io . File file = org . owasp . dependencycheck . BaseTest . getResourceAsFile ( this , "suppressions.xml" ) ; org . owasp . dependencycheck . xml . suppression . SuppressionParser instance = new org . owasp . dependencycheck . xml . suppression . SuppressionParser ( ) ; java...
org . junit . Assert . assertEquals ( 5 , result . size ( ) )
connectLocalStream ( ) { final org . xnio . XnioWorker xnioWorker = org . xnio . nio . test . XnioWorkerTestCase . xnio . createWorker ( OptionMap . EMPTY ) ; java . lang . UnsupportedOperationException expected = null ; try { xnioWorker . connectStream ( new org . xnio . LocalSocketAddress ( "server<sp>for<sp>test" ) ...
org . junit . Assert . assertNotNull ( expected )
multiLineReport ( ) { java . lang . String filterDef = "filter<sp>=<sp>[{from:<sp>UID}\n{from:<sp>LED}\n{OBVIOUSLYNOTAFILTER<sp>{}}]" ; java . lang . String message = null ; int lineNumber = - 1 ; com . addthis . bundle . core . Bundle bundle = new com . addthis . bundle . core . list . ListBundle ( ) ; try { com . add...
org . junit . Assert . assertEquals ( 3 , lineNumber )
testThatAttachmentsIsNotSetToNull ( ) { org . eclipse . sw360 . portal . tags . links . DisplayDownloadAttachmentBundle displayDownloadAttachmentBundle = new org . eclipse . sw360 . portal . tags . links . DisplayDownloadAttachmentBundle ( ) ; displayDownloadAttachmentBundle . setAttachments ( null ) ; "<AssertPlaceHol...
org . junit . Assert . assertNotNull ( displayDownloadAttachmentBundle . attachments )
testDeleteTrue ( ) { initializeExpectedTable ( 1 ) ; expect ( bigquery . getOptions ( ) ) . andReturn ( mockOptions ) ; expect ( bigquery . delete ( com . google . cloud . bigquery . TableTest . TABLE_INFO . getTableId ( ) ) ) . andReturn ( true ) ; replay ( bigquery ) ; initializeTable ( ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertTrue ( table . delete ( ) )
asyncCreatedListenerCalled ( ) { final java . util . concurrent . atomic . AtomicInteger _callCount = new java . util . concurrent . atomic . AtomicInteger ( ) ; final java . util . concurrent . CountDownLatch _fire = new java . util . concurrent . CountDownLatch ( 1 ) ; org . cache2k . Cache < java . lang . Integer , ...
org . junit . Assert . assertEquals ( 0 , _callCount . get ( ) )
testGetRow ( ) { final org . apache . poi . ss . util . CellAddress addr = new org . apache . poi . ss . util . CellAddress ( 6 , 4 ) ; "<AssertPlaceHolder>" ; } getRow ( ) { throw new java . lang . UnsupportedOperationException ( ) ; }
org . junit . Assert . assertEquals ( 6 , addr . getRow ( ) )
testIsSubProject2 ( ) { java . io . File build = root . newFile ( "build.gradle" ) ; java . io . File settings = root . newFile ( "settings.gradle" ) ; java . io . File module = root . newFolder ( "module" ) ; java . nio . file . Files . write ( settings . toPath ( ) , java . util . Arrays . asList ( "include<sp>'modul...
org . junit . Assert . assertTrue ( gf . isSubProject ( ) )
constructorCamelContextShouldSetTheContext ( ) { org . apache . camel . CamelContext context = new org . apache . camel . impl . DefaultCamelContext ( ) ; component = new org . apache . camel . component . smpp . SmppComponent ( context ) ; "<AssertPlaceHolder>" ; } getCamelContext ( ) { return camelContext ; }
org . junit . Assert . assertSame ( context , component . getCamelContext ( ) )
getMarketplacePartnerPriceModel ( ) { org . oscm . internal . pricing . POPartnerPriceModel expected = new org . oscm . internal . pricing . POPartnerPriceModel ( ) ; m . setMarketplacePartnerPriceModel ( expected ) ; org . oscm . internal . pricing . POPartnerPriceModel s = m . getMarketplacePartnerPriceModel ( ) ; "<...
org . junit . Assert . assertEquals ( expected , s )
shouldAddChildQueriesToExistingQueries ( ) { com . couchbase . client . java . search . queries . PrefixQuery innerA = com . couchbase . client . java . search . SearchQuery . prefix ( "someterm" ) . boost ( 2.0 ) ; com . couchbase . client . java . search . queries . PrefixQuery innerB = com . couchbase . client . jav...
org . junit . Assert . assertEquals ( expected , query . export ( ) )
versioned ( ) { builder . child ( "nt:file" ) . setProperty ( createProperty ( org . apache . jackrabbit . oak . plugins . document . bundlor . DocumentBundlor . PROP_PATTERN , asList ( "jcr:content" ) , org . apache . jackrabbit . oak . plugins . document . bundlor . STRINGS ) ) ; org . apache . jackrabbit . oak . plu...
org . junit . Assert . assertNotNull ( registry . getBundlor ( builder . getNodeState ( ) ) )
equalsContent_shouldIndicateUnequalWhenOnlyAddressTwoDiffers ( ) { org . openmrs . PersonAddress rileyStreetAddress = new org . openmrs . PersonAddress ( ) ; org . openmrs . PersonAddress crownStreetAddress = new org . openmrs . PersonAddress ( ) ; crownStreetAddress . setAddress2 ( "crown<sp>street" ) ; rileyStreetAdd...
org . junit . Assert . assertThat ( crownStreetAddress . equalsContent ( rileyStreetAddress ) , org . hamcrest . CoreMatchers . is ( false ) )
testRemoveUnloadedHeavyProperty ( ) { newTransaction ( ) ; graphDb . index ( ) . getNodeAutoIndexer ( ) . setEnabled ( true ) ; graphDb . index ( ) . getNodeAutoIndexer ( ) . startAutoIndexingProperty ( "nodeProp" ) ; org . neo4j . graphdb . Node node1 = graphDb . createNode ( ) ; node1 . setProperty ( "nodeProp" , new...
org . junit . Assert . assertFalse ( node1 . hasProperty ( "nodeProp" ) )
testMapSubProcessWithEventSubProcess ( ) { org . camunda . bpm . engine . repository . ProcessDefinition sourceProcessDefinition = testHelper . deployAndGetDefinition ( EventSubProcessModels . NESTED_EVENT_SUB_PROCESS_PROCESS ) ; org . camunda . bpm . engine . repository . ProcessDefinition targetProcessDefinition = te...
org . junit . Assert . assertThat ( migrationPlan )
shouldValidateTechnologyDuringWithdrawing ( ) { given ( technology . getId ( ) ) . willReturn ( 101L ) ; given ( techDataDefinition . get ( 101L ) ) . willReturn ( existingTechnology ) ; given ( technology . getStringField ( TechnologyFields . STATE ) ) . willReturn ( TechnologyState . OUTDATED . getStringValue ( ) ) ;...
org . junit . Assert . assertTrue ( isValid )
testExecute ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "config" , "set" , "name" , "value" } ; org . locationtech . geowave . core . cli . spi . OperationRegistry registry = org . locationtech . geowave . core . cli . spi . OperationRegistry . getInstance ( ) ; org . locationtech . geowave . c...
org . junit . Assert . assertEquals ( value , p . getProperty ( name ) )
testSetPropertyMap ( ) { java . util . Map < java . lang . String , java . lang . Object > o1 = createMap ( ) ; java . util . Map < java . lang . String , java . lang . Object > o2 = new java . util . HashMap ( ) ; org . apache . cayenne . reflect . PropertyUtils . setProperty ( o2 , "byteArrayField" , o1 . get ( "byte...
org . junit . Assert . assertEquals ( o1 , o2 )
testGetColumnsAfterLast ( ) { try ( java . sql . ResultSet resultSet = getResultSet ( ) ) { resultSet . next ( ) ; resultSet . next ( ) ; for ( int i = 1 ; i <= ( resultSet . getMetaData ( ) . getColumnCount ( ) ) ; ++ i ) { "<AssertPlaceHolder>" ; } } } getColumn ( java . sql . ResultSet , int , boolean ) { try { swit...
org . junit . Assert . assertTrue ( getColumn ( resultSet , i , true ) )
testActionInit ( ) { org . pentaho . reporting . designer . testsupport . TestReportDesignerContext designerContext = new org . pentaho . reporting . designer . testsupport . TestReportDesignerContext ( ) ; int i = designerContext . addMasterReport ( new org . pentaho . reporting . engine . classic . core . MasterRepor...
org . junit . Assert . assertNotNull ( crosstabAction . getSelectionModel ( ) )
interval_caller_should_filter_calls_in_which_neither_breakend_starts_in_interval ( ) { createInput ( RP ( 0 , 1 , 2 , 1 ) , DP ( 0 , 1 , "1M" , true , 1 , 100 , "1M" , false ) ) ; au . edu . wehi . idsv . SAMEvidenceSource ses = new au . edu . wehi . idsv . SAMEvidenceSource ( getCommandlineContext ( ) , input , null ,...
org . junit . Assert . assertEquals ( 2 , result . size ( ) )
testGetValueBytesAgainstGuava ( ) { byte [ ] expected = com . google . common . hash . Hashing . murmur3_128 ( ) . hashBytes ( org . greenrobot . essentials . hash . INPUT4 ) . asBytes ( ) ; murmur3F . update ( org . greenrobot . essentials . hash . INPUT4 , 0 , INPUT4 . length ) ; byte [ ] bytes = murmur3F . getValueB...
org . junit . Assert . assertArrayEquals ( expected , bytes )
queryTitleEquals ( ) { ddf . catalog . operation . Query query = new ddf . catalog . operation . impl . QueryImpl ( ddf . catalog . source . solr . provider . SolrProviderTestUtil . getFilterBuilder ( ) . attribute ( ddf . catalog . source . solr . provider . SolrProviderExtensibleMetacards . DESCRIPTION_FIELD ) . equa...
org . junit . Assert . assertEquals ( 1 , response . getResults ( ) . size ( ) )
defaultState ( ) { com . github . maven . example . Widget widget = new com . github . maven . example . Widget ( ) ; "<AssertPlaceHolder>" ; } isEnabled ( ) { return enabled ; }
org . junit . Assert . assertTrue ( widget . isEnabled ( ) )
testPoll_whenReadyAndEvent ( ) { watchService . setRunning ( true ) ; com . peircean . glusterfs . GlusterWatchKey mockKey = mock ( com . peircean . glusterfs . GlusterWatchKey . class ) ; watchService . getPaths ( ) . add ( mockKey ) ; doReturn ( null ) . doReturn ( mockKey ) . when ( watchService ) . popPending ( ) ;...
org . junit . Assert . assertEquals ( mockKey , key )
testInFilterOnIndexedTable ( ) { java . util . Properties props = org . apache . phoenix . util . PropertiesUtil . deepCopy ( org . apache . phoenix . end2end . index . TEST_PROPERTIES ) ; java . lang . String tableName = "TBL_" + ( generateUniqueName ( ) ) ; java . lang . String indexName = "IND_" + ( generateUniqueNa...
org . junit . Assert . assertTrue ( rs . next ( ) )
fetch ( ) { "<AssertPlaceHolder>" ; } fetch ( ) { return innerList ( ) ; }
org . junit . Assert . assertFalse ( query . fetch ( ) . isEmpty ( ) )
shouldReturnSimpleNameOnToString ( ) { for ( org . dcache . util . ChecksumType checksumType : org . dcache . util . ChecksumType . values ( ) ) { "<AssertPlaceHolder>" ; } } getName ( ) { return _name ; }
org . junit . Assert . assertEquals ( checksumType . getName ( ) , checksumType . toString ( ) )
testWorkerAlreadyShutdownAtNotification ( ) { java . util . concurrent . Callable < java . lang . Boolean > requestedShutdownCallable = buildRequestedShutdownCallable ( ) ; mockLatchAwait ( notificationCompleteLatch , false , true ) ; when ( notificationCompleteLatch . getCount ( ) ) . thenReturn ( 1L , 0L ) ; mockLatc...
org . junit . Assert . assertThat ( requestedShutdownCallable . call ( ) , org . hamcrest . CoreMatchers . equalTo ( false ) )
passCase3 ( ) { org . openstack . atlas . api . validation . verifiers . VerifierResult result = hostNameVerifier . verify ( "*.hostname.com" ) ; "<AssertPlaceHolder>" ; } passed ( ) { return passed ; }
org . junit . Assert . assertTrue ( result . passed ( ) )
testDefaultV2 ( ) { java . lang . String filename = ( this . utils . getOutputDirectory ( ) ) + "schedule.xml" ; org . matsim . pt . transitSchedule . api . TransitScheduleFactory builder = new org . matsim . pt . transitSchedule . TransitScheduleFactoryImpl ( ) ; org . matsim . pt . transitSchedule . api . TransitSche...
org . junit . Assert . assertEquals ( 1 , schedule2 . getTransitLines ( ) . size ( ) )
entrySet_toArray_withPreSizedTarget ( ) { com . gs . collections . api . map . MutableMap < java . lang . Integer , java . lang . String > map = this . newMapWithKeyValue ( 1 , "One" ) ; java . util . Map < java . lang . Integer , java . lang . String > [ ] entries = map . entrySet ( ) . toArray ( new java . util . Map...
org . junit . Assert . assertArrayEquals ( new java . util . Map . Entry [ ] { com . gs . collections . impl . tuple . ImmutableEntry . of ( 1 , "One" ) } , entries )
testValidNullValue ( ) { java . net . URI propertiesUri = getClass ( ) . getResource ( "/properties/a/b/valid_null_value.prop.sl" ) . toURI ( ) ; java . util . Set < io . cloudslang . lang . entities . SystemProperty > expectedSystemProperties = getSystemPropertiesValidNullValue ( ) ; java . util . Set < io . cloudslan...
org . junit . Assert . assertEquals ( expectedSystemProperties , actualSystemProperties )
testGenerateValue ( ) { "<AssertPlaceHolder>" ; } generateValue ( ) { return generateValue ( java . util . UUID . randomUUID ( ) . toString ( ) ) ; }
org . junit . Assert . assertNotNull ( g . generateValue ( ) )
testAsyncEjbPrincipal ( javax . servlet . http . HttpServletRequest , javax . servlet . http . HttpServletResponse ) { try { req . login ( "test" , "test" ) ; java . util . concurrent . Future < java . security . Principal > value = threadContextBean . getEjbPrincipal ( ) ; "<AssertPlaceHolder>" ; } finally { req . log...
org . junit . Assert . assertThat ( value . get ( ) . getName ( ) , org . hamcrest . Matchers . equalTo ( "test" ) )
testSetLogMessageFormat ( ) { testTarget . setLogMessageFormat ( "logId:{0}\tlogMessage:{1}" ) ; java . lang . String code = "exceptionCode" ; java . lang . String message = "exceptionMessage" ; java . lang . String actualLogMessage = testTarget . formatLogMessage ( code , message ) ; java . lang . String expectedLogMe...
org . junit . Assert . assertThat ( actualLogMessage , org . hamcrest . CoreMatchers . is ( expectedLogMessage ) )
testV1ToV2 ( ) { java . util . List < com . streamsets . pipeline . api . Config > configs = new java . util . ArrayList ( ) ; configs . add ( new com . streamsets . pipeline . api . Config ( "b" 4 , 1000 ) ) ; configs . add ( new com . streamsets . pipeline . api . Config ( "b" 1 , 10 ) ) ; configs . add ( new com . s...
org . junit . Assert . assertTrue ( isPresent )
testClientOnlyMode ( ) { org . apache . cassandra . CleanupHelper . mkdirs ( ) ; org . apache . cassandra . CleanupHelper . cleanup ( ) ; StorageService . instance . initClient ( ) ; for ( java . lang . String path : org . apache . cassandra . config . DatabaseDescriptor . getAllDataFileLocations ( ) ) { "<AssertPlaceH...
org . junit . Assert . assertFalse ( new java . io . File ( path ) . exists ( ) )
setAndGetManagerOrdersTest ( ) { System . out . print ( "-><sp>setAndGetManagerOrders()<sp>-<sp>" ) ; final ua . com . alexcoffee . model . user . User user = ua . com . alexcoffee . model . user . User . getBuilder ( ) . build ( ) ; user . setManagerOrders ( getTenOrders ( ) ) ; "<AssertPlaceHolder>" ; System . out . ...
org . junit . Assert . assertTrue ( ( ( user . getManagerOrders ( ) . size ( ) ) == 10 ) )
getRejectedGenesReturnsEmptyCollectionWhenRejectedGenesNotRetrievedFromPatient ( ) { when ( this . patient . getFeatures ( ) ) . thenReturn ( null ) ; when ( this . patient . getData ( org . phenotips . panels . internal . PatientDataAdapterTest . GLOBAL_QUALIFIERS ) ) . thenReturn ( null ) ; final org . phenotips . pa...
org . junit . Assert . assertTrue ( dataAdapter . getRejectedGenes ( ) . isEmpty ( ) )